-
Notifications
You must be signed in to change notification settings - Fork 304
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
I can not use google search retrieval feature #435
Comments
Yeah there's a similar issue with the legacy Python SDK when it comes to Gemini 2 models, at least for the There's a gist linked there that shows how to use search with Gemini 2 models with the new Python SDK though. EDIT: But although mentioned in the docs, there's no example for this shown there yet- https://ai.google.dev/gemini-api/docs/grounding?lang=node#search-suggestions |
I checked the sample code in the link you provided, and there wasn't much difference in the implementation. The issue in the link you provided seems to have been resolved by replacing it with the new library. Hmm.. I guess I'll have to submit a pull request to fix this.. Thanks for sharing the information! |
Oops... there is an issue mentioning the js version of genai. If anyone is having the same problem as me, please refer to this issue. |
Not necessary to use the new js library though. Did you check the |
Description of the bug:
Code
1. I can't use the
Google Search Retrieval
.2. I can't use
response.modelVersion
.3. I can't use error status code.
Actual vs expected behavior:
expected
Google Search Retrieval
.response.modelVersion
.actual
Google Search Retrieval
. I got error response.response.modelVersion
. I got typescript error.Any other information you'd like to share?
No response
The text was updated successfully, but these errors were encountered: