-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Describe the bug
gemini-live-2.5-flash-preview-native-audio-09-2025 which is in Public Preview available through vertexai is erroring out on usage.
09-2025 tag is erroring out, however I am able to use gemini-live-2.5-flash-preview-native-audio without issues, wanted to switch to the latest one since Discontinuation date: October 18, 2025 is mentioned in the documentation.
This is the error I encountered.
websockets.exceptions.ConnectionClosedError: received 1008 (policy violation) Publisher Model `projects/<PROJECT_NMAE>/locations/global/publishers/google/models/gemini-live-2.5-flash-preview-na; then sent 1008 (policy violation) Publisher Model `projects/<PROJECT_NAME>/locations/global/publishers/google/models/gemini-live-2.5-flash-preview-na
To Reproduce
from google.adk.agents import Agent
root_agent = Agent(
name="live_agent",
model="gemini-live-2.5-flash-preview-native-audio-09-2025",
description="A friendly conversational agent",
instruction=get_instruction()
)Expected behavior
I should be able to access the LLM request without the policy violation, since I am using GOOGLE_GENAI_USE_VERTEXAI=True, and it's publicly available.
Desktop
- OS: [Linux]
- Python version(python -V): 3.12
- ADK version(pip show google-adk): 1.16.0
Model Information:
- Are you using LiteLLM: No
- Which model is being used: gemini-live-2.5-flash-preview-native-audio-09-2025
Additional context
I understand that this might not be relevant to google-adk and an issue on the vertexai usage. Adding it here, as the community might experience it too.