diff --git a/+llms/+utils/errorMessageCatalog.m b/+llms/+utils/errorMessageCatalog.m index fe13f0d..f3d57c7 100644 --- a/+llms/+utils/errorMessageCatalog.m +++ b/+llms/+utils/errorMessageCatalog.m @@ -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 \ No newline at end of file +end diff --git a/tests/texampleTests.m b/tests/texampleTests.m index 6a07a3a..8585e81 100644 --- a/tests/texampleTests.m +++ b/tests/texampleTests.m @@ -53,6 +53,10 @@ function testAnalyzeTextDataUsingParallelFunctionCallwithChatGPT(~) function testRetrievalAugmentedGenerationUsingChatGPTandMATLAB(~) RetrievalAugmentedGenerationUsingChatGPTandMATLAB; end + + function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(~) + AnalyzeSentimentinTextUsingChatGPTinJSONMode; + end end end @@ -61,4 +65,4 @@ function iCloseAll() % Close all opened figures allFig = findall(0, 'type', 'figure'); close(allFig) -end \ No newline at end of file +end