From 5ce595352104f8090a3527d45f1f56d4ab302d6d Mon Sep 17 00:00:00 2001 From: Vassilis Papanastasiou Date: Tue, 30 Apr 2024 16:17:11 +0100 Subject: [PATCH] Update topenAIChat.m Add test for openAIChat/generate with default NVP values --- tests/topenAIChat.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/topenAIChat.m b/tests/topenAIChat.m index 904a206..b98af20 100644 --- a/tests/topenAIChat.m +++ b/tests/topenAIChat.m @@ -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