models/gemini-2.5-pro-preview-05-06 is not found for API version v1alpha, or is not supported for bidiGenerateContent #1054
-
Hi, I'm trying to build a simple UI interface in Next.Js where I invoke my agent. It does work when I start the agent with adk api_server I'm suspecting that running adk api_server is not appropriate solution to run agents in production ( I will be hosting this agent in docker / AWS ECS) so I am trying to build a simple python program to serve SSE events to my UI app. Here is the main.py code :
Next.js routes:
And the UI component itself:
When I invoke the agent from the UI I get this error:
As mentioned before - I can get this running with I'm guessing v1alpha does not support something that is needed, but tried changing to v1beta - but I don't know how ! Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
have you tried changing your model for example gemini-2.0-flash-live-001? |
Beta Was this translation helpful? Give feedback.
-
im having the same issue ! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the question! |
Beta Was this translation helpful? Give feedback.
Thanks for the question!
adk api_server is meant for production use as well. For the error message you see, try using a different model id, or check your API version / backend, e.g. whether it's Google AI API, or Vertex, v1alpha vs v1beta, etc.