Skip to content

Gemini Live API - Policy Violation 1008 #3314

@me-her

Description

@me-her

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.

Metadata

Metadata

Assignees

Labels

live[Component] This issue is related to live, voice and video chat

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions