my gemini live implementation works well when using ai studio i.e. using the api_key but fails and shows 1008 or 1007 errors when using vertex ai. what seems to be causing this issue?
this is my gemini live payload:
gemini_model = os.getenv('GEMINI_REALTIME_MODEL', 'gemini-live-2.5-flash-preview')
llm_instance = google.beta.realtime.RealtimeModel(
api_key=os.getenv('GOOGLE_API_KEY'),
model=gemini_model,
temperature=0.8,
instructions=system_instructions,
modalities=["TEXT"],
language="en-US",
# vertexai="true"
)