Skip to content

Commit 5ce5953

Browse files
committed
Update topenAIChat.m
Add test for openAIChat/generate with default NVP values
1 parent 2eb2199 commit 5ce5953

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/topenAIChat.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ function generateAcceptsMessagesAsInput(testCase)
3838
testCase.verifyWarningFree(@()generate(chat,messages));
3939
end
4040

41+
function generateOpenAIChatWithDefaultNVPValues(testCase)
42+
chat = openAIChat();
43+
testCase.verifyWarningFree(@()generate(chat,"This is okay"));
44+
end
45+
4146
function keyNotFound(testCase)
4247
testCase.verifyError(@()openAIChat, "llms:keyMustBeSpecified");
4348
end

0 commit comments

Comments
 (0)