Skip to content
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

API Error: Resource has been exhausted (e.g. check quota). #385

Open
SeanFeng91 opened this issue Dec 27, 2024 · 2 comments
Open

API Error: Resource has been exhausted (e.g. check quota). #385

SeanFeng91 opened this issue Dec 27, 2024 · 2 comments
Assignees
Labels
component:gemini 2.0 Issues/PR referencing gemini2 folder status:awaiting response Awaiting a response from the author status:stale Issue/PR is marked for closure due to inactivity type:documentation The documentation needs to be updated

Comments

@SeanFeng91
Copy link

Description of the bug:

Hello, I successfully used the Gemini-2.0-Flash API and utilized google_search according to the case study. It's possible that I used it quite a few times during the testing process, perhaps dozens or even a hundred times, and then I received an API Error: Resource has been exhausted (e.g. check quota). However, when I checked the API usage on Google Cloud, I didn't find any overages or restrictions. The Generative Language API is working normally. I can access Gemini-2.0 without issues, but the search function is not working. Where can I see the usage of v1alpha API?

By the way, is it ok to use [Custom Search API] instead of client = genai.Client(http_options={'api_version': 'v1alpha'})?

Thank you!

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

@Giom-V Giom-V self-assigned this Dec 30, 2024
@Giom-V Giom-V added the type:documentation The documentation needs to be updated label Dec 30, 2024
@Giom-V
Copy link
Collaborator

Giom-V commented Dec 30, 2024

Hello @SeanFeng91,

The documentation isn't clear about it but search-as-a-tool is a paid feature (cf. pricing) and only has a very limited free tier (a few tries at most), which is likely why you're getting blocked.
I'll update the documentation and the examples to make it clearer.

As for your question about v1alpha APIs, yes they are safe to use. Some experimental features (like real time) haven't been pushed in the beta branch (the official one) and are only available in alpha but alpha is nearly as stable as beta and sage to use.

@Giom-V Giom-V added status:awaiting response Awaiting a response from the author component:gemini 2.0 Issues/PR referencing gemini2 folder labels Jan 6, 2025
Copy link

Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.

@github-actions github-actions bot added the status:stale Issue/PR is marked for closure due to inactivity label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:gemini 2.0 Issues/PR referencing gemini2 folder status:awaiting response Awaiting a response from the author status:stale Issue/PR is marked for closure due to inactivity type:documentation The documentation needs to be updated
Projects
None yet
Development

No branches or pull requests

2 participants