Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified examples/UsingDALLEToEditImages.mlx
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good! I will give the intro a more thorough review within the next week or so!

Binary file not shown.
12 changes: 10 additions & 2 deletions tests/texampleTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down