-
Notifications
You must be signed in to change notification settings - Fork 24
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
Reflecting the updated models released on April 9, 2024 #18
Conversation
This reverts commit 9fe8a06.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with the code changes and just assume that you (and maybe one of the other reviewers) know enough about the currently offered models to assess which model/parameter combinations make sense to support.
Too bad GitHub doesn't show a diff of the mlx file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these changes Toshi. Please see my comments and feel free to let me know if you have any questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you for renaming all the example files!
@@ -49,8 +49,10 @@ | |||
catalog("llms:mustBeMessagesOrTxt") = "Messages must be text with one or more characters or an openAIMessages objects."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Messages must be nonempty char, string, or openAIMessages object.
image_path = "peppers.png"; | ||
messages = openAIMessages; | ||
messages = addUserMessageWithImages(messages,"What is in the image?",image_path); | ||
[txt,response] = generate(chat,messages); | ||
[txt,response] = generate(chat,messages,MaxNumTokens=4096); | ||
% Should output the description of the image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returns image description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"in" should be upper case, i.e. AnalyzeSentimentInTextUsingChatGPTInJSONMode.mlx
The list of supported models updates to reflect the changes in released on April 9, 2024.