From 9cf4e4ce67be0567c4f9a759fb109cbd198ba36f Mon Sep 17 00:00:00 2001 From: Vassilis Papanastasiou Date: Wed, 24 Apr 2024 14:00:23 +0100 Subject: [PATCH] Update topenAIChat.m Add first test to check secret PENAI_KEY --- tests/topenAIChat.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/topenAIChat.m b/tests/topenAIChat.m index c001c3b..2933d79 100644 --- a/tests/topenAIChat.m +++ b/tests/topenAIChat.m @@ -115,6 +115,11 @@ function noStopSequencesNoMaxNumTokens(testCase) testCase.verifyWarningFree(@()generate(chat,"This is okay")); end + function createOpenAIChatWithOpenAIKey(testCase) + chat = openAIChat(ApiKey=getenv(OPENAI_KEY)); + testCase.verifyWarningFree(@()generate(chat,"Hello world.")); + end + end end