Skip to content

Fix function call #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 23, 2024
Merged

Fix function call #23

merged 3 commits into from
Apr 23, 2024

Conversation

debymf
Copy link
Member

@debymf debymf commented Apr 20, 2024

Fixing broken function call examples

@debymf debymf requested a review from vpapanasta April 22, 2024 08:23
if ~endsWith(s.name, ".png")
imgDetails = imfinfo(filePath);
imgFormat = imgDetails.Format;
if ~(imgFormat=="png")
Copy link
Member

Choose a reason for hiding this comment

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

How come do we accept only "png"? Is it a requirement from the OpenAI API?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that restriction comes from the OpenAI side. We might later want to add a test to make sure this behavior not changing.

@vpapanasta
Copy link
Member

The example works for me. The .csv file is being generated as expected.

@@ -86,7 +86,7 @@

arguments
this (1,1) openAIImages
Copy link
Member

Choose a reason for hiding this comment

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

openAIImages is not perfectly aligned. Just delete a space before it.

Copy link
Member

@vpapanasta vpapanasta left a comment

Choose a reason for hiding this comment

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

openAIImages is not perfectly aligned. Just delete a space before it.

@debymf debymf merged commit 3d35464 into main Apr 23, 2024
1 check passed
@debymf debymf deleted the fix-function-call branch April 23, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants