Skip to content

Commit

Permalink
Update topenAIChat.m
Browse files Browse the repository at this point in the history
Add first test to check secret PENAI_KEY
  • Loading branch information
vpapanasta committed Apr 24, 2024
1 parent a3f3440 commit 9cf4e4c
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 @@ -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

Expand Down

0 comments on commit 9cf4e4c

Please sign in to comment.