diff --git a/examples/UsingDALLEToEditImages.mlx b/examples/UsingDALLEToEditImages.mlx index a4a027a..f12dcf1 100644 Binary files a/examples/UsingDALLEToEditImages.mlx and b/examples/UsingDALLEToEditImages.mlx differ diff --git a/tests/texampleTests.m b/tests/texampleTests.m index 8585e81..90b05e7 100644 --- a/tests/texampleTests.m +++ b/tests/texampleTests.m @@ -5,6 +5,9 @@ methods (TestClassSetup) function setUpAndTearDowns(testCase) + import matlab.unittest.fixtures.CurrentFolderFixture + testCase.applyFixture(CurrentFolderFixture("../examples")); + openAIEnvVar = "OPENAI_KEY"; secretKey = getenv(openAIEnvVar); % Create an empty .env file because it is expected by our .mlx @@ -54,8 +57,13 @@ function testRetrievalAugmentedGenerationUsingChatGPTandMATLAB(~) RetrievalAugmentedGenerationUsingChatGPTandMATLAB; end - function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(~) - AnalyzeSentimentinTextUsingChatGPTinJSONMode; + function testUsingDALLEToEditImages(~) + UsingDALLEToEditImages; + end + + function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(testCase) + testCase.verifyWarning(@AnalyzeSentimentinTextUsingChatGPTinJSONMode,... + "llms:warningJsonInstruction"); end end