Skip to content

Commit

Permalink
Merge pull request #39 from matlab-deep-learning/add-extra-test
Browse files Browse the repository at this point in the history
Adding missing testAnalyzeSentimentinTextUsingChatGPTinJSONMode
  • Loading branch information
vpapanasta authored Jun 6, 2024
2 parents 05ac9a9 + ab88474 commit 0509cc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion +llms/+utils/errorMessageCatalog.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@
catalog("llms:warningJsonInstruction") = "When using JSON mode, you must also prompt the model to produce JSON yourself via a system or user message.";
catalog("llms:apiReturnedError") = "OpenAI API Error: {1}";
catalog("llms:dimensionsMustBeSmallerThan") = "Dimensions must be less than or equal to {1}.";
end
end
6 changes: 5 additions & 1 deletion tests/texampleTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ function testAnalyzeTextDataUsingParallelFunctionCallwithChatGPT(~)
function testRetrievalAugmentedGenerationUsingChatGPTandMATLAB(~)
RetrievalAugmentedGenerationUsingChatGPTandMATLAB;
end

function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(~)
AnalyzeSentimentinTextUsingChatGPTinJSONMode;
end
end

end
Expand All @@ -61,4 +65,4 @@ function iCloseAll()
% Close all opened figures
allFig = findall(0, 'type', 'figure');
close(allFig)
end
end

0 comments on commit 0509cc5

Please sign in to comment.