Skip to content

[VertexAI] Log warning for unsupported model names #6805

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 2 commits into from
Mar 25, 2025
Merged

Conversation

rlazo
Copy link
Collaborator

@rlazo rlazo commented Mar 25, 2025

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
Copy link
Contributor

github-actions bot commented Mar 25, 2025

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

@rlazo rlazo enabled auto-merge (squash) March 25, 2025 03:18
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 25, 2025

Copy link
Contributor

github-actions bot commented Mar 25, 2025

Test Results

 18 files  ±0   18 suites  ±0   14s ⏱️ ±0s
 86 tests ±0   86 ✅ ±0  0 💤 ±0  0 ❌ ±0 
172 runs  ±0  172 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 3837840. ± Comparison against base commit 8a72ed5.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-dataconnect_api.txt:

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@rlazo rlazo merged commit f67d32d into main Mar 25, 2025
30 checks passed
@rlazo rlazo deleted the rl.vertex.warn branch March 25, 2025 20:37
tejasd pushed a commit that referenced this pull request Apr 1, 2025
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
@firebase firebase locked and limited conversation to collaborators Apr 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants