Skip to content

Commit 9cf4e4c

Browse files
committed
Update topenAIChat.m
Add first test to check secret PENAI_KEY
1 parent a3f3440 commit 9cf4e4c

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
@@ -115,6 +115,11 @@ function noStopSequencesNoMaxNumTokens(testCase)
115115
testCase.verifyWarningFree(@()generate(chat,"This is okay"));
116116
end
117117

118+
function createOpenAIChatWithOpenAIKey(testCase)
119+
chat = openAIChat(ApiKey=getenv(OPENAI_KEY));
120+
testCase.verifyWarningFree(@()generate(chat,"Hello world."));
121+
end
122+
118123
end
119124
end
120125

0 commit comments

Comments
 (0)