Skip to content

Commit

Permalink
Update topenAIChat.m
Browse files Browse the repository at this point in the history
Add test for openAIChat/generate with default NVP values
  • Loading branch information
vpapanasta committed Apr 30, 2024
1 parent 2eb2199 commit 5ce5953
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/topenAIChat.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ function generateAcceptsMessagesAsInput(testCase)
testCase.verifyWarningFree(@()generate(chat,messages));
end

function generateOpenAIChatWithDefaultNVPValues(testCase)
chat = openAIChat();
testCase.verifyWarningFree(@()generate(chat,"This is okay"));
end

function keyNotFound(testCase)
testCase.verifyError(@()openAIChat, "llms:keyMustBeSpecified");
end
Expand Down

0 comments on commit 5ce5953

Please sign in to comment.