-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Hi,
I haven’t changed anything in my code, but today all requests to the Gemini models are returning 404. Yesterday I had a similar issue with the Pro model, which was returning 429 and 500 errors for several hours.
const ai = new GoogleGenAI({
apiKey: GOOGLE_GEMINI_API_KEY,
});
await ai.models.generateContent({
model: "gemini-2.5-flash",
contents: "Explain how AI works in a few words",
});
failed: ApiError: {"error":{"message":"","code":404,"status":"Not Found"}}

It would be great to add debug parameters to see what is being sent to the server. Right now, errors are like a black box.
UPD: https://generativelanguage.googleapis.com/v1beta/openai/chat/completions via openai
works fine
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.