-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Vertex AI] Log warning for unsupported model names #14610
Conversation
…Model initializers. This change adds a warning message to the initializers of GenerativeModel and ImagenModel. The warning is logged when the provided model name does not start with the expected prefix ("gemini-" for GenerativeModel and "imagen-" for ImagenModel). The warning message includes a link to the documentation for supported models. The changes were tested manually, but automated tests could not be run due to an unavailable test environment.
This comment was marked as resolved.
This comment was marked as resolved.
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.
Code Review
This pull request introduces a warning message when the provided model name does not start with the expected prefix for GenerativeModel
and ImagenModel
. This is a good addition to help developers use the SDK correctly. The implementation is clear and straightforward.
Merge Readiness
The code changes are well-implemented and the added warning messages will be helpful for developers. I don't see any issues that would block merging this pull request, but as always, I am unable to directly approve the pull request and recommend that others review and approve this code before merging.
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!
Added a warning message to the initializers of GenerativeModel and ImagenModel that is logged when the provided model name does not start with the expected prefix ("gemini-" for GenerativeModel and "imagen-" for ImagenModel). The warning message includes a link to the documentation for supported models. Note: No error is thrown in case the naming scheme is changed in the future, though we would want to update the logic/message at that time. Related iOS PR firebase/firebase-ios-sdk#14610
Added a warning message to the initializers of GenerativeModel and ImagenModel that is logged when the provided model name does not start with the expected prefix ("gemini-" for GenerativeModel and "imagen-" for ImagenModel). The warning message includes a link to the documentation for supported models. Note: No error is thrown in case the naming scheme is changed in the future, though we would want to update the logic/message at that time. Related iOS PR firebase/firebase-ios-sdk#14610
Added a warning message to the initializers of
GenerativeModel
andImagenModel
that is logged when the provided model name does not start with the expected prefix ("gemini-"
forGenerativeModel
and"imagen-"
forImagenModel
). The warning message includes a link to the documentation for supported models.Note: No error is thrown in case the naming scheme is changed in the future, though we would want to update the logic/message at that time.