Skip to content

Commit 0509cc5

Browse files
authored
Merge pull request #39 from matlab-deep-learning/add-extra-test
Adding missing testAnalyzeSentimentinTextUsingChatGPTinJSONMode
2 parents 05ac9a9 + ab88474 commit 0509cc5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

+llms/+utils/errorMessageCatalog.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@
5656
catalog("llms:warningJsonInstruction") = "When using JSON mode, you must also prompt the model to produce JSON yourself via a system or user message.";
5757
catalog("llms:apiReturnedError") = "OpenAI API Error: {1}";
5858
catalog("llms:dimensionsMustBeSmallerThan") = "Dimensions must be less than or equal to {1}.";
59-
end
59+
end

tests/texampleTests.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ function testAnalyzeTextDataUsingParallelFunctionCallwithChatGPT(~)
5353
function testRetrievalAugmentedGenerationUsingChatGPTandMATLAB(~)
5454
RetrievalAugmentedGenerationUsingChatGPTandMATLAB;
5555
end
56+
57+
function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(~)
58+
AnalyzeSentimentinTextUsingChatGPTinJSONMode;
59+
end
5660
end
5761

5862
end
@@ -61,4 +65,4 @@ function iCloseAll()
6165
% Close all opened figures
6266
allFig = findall(0, 'type', 'figure');
6367
close(allFig)
64-
end
68+
end

0 commit comments

Comments
 (0)