parameter is not supported in Vertex AI. Traceback...
# ask-ai
s
parameter is not supported in Vertex AI. Traceback (most recent call last): File "/home/ubuntu/livekit/venv/lib/python3.12/site-packages/livekit/plugins/google/realtime/realtime_api.py", line 732, in _send_task await session.send_tool_response(function_responses=msg.function_responses) File "/home/ubuntu/livekit/venv/lib/python3.12/site-packages/google/genai/live.py", line 413, in send_tool_response tool_response_dict = live_converters._LiveClientToolResponse_to_vertex( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/ubuntu/livekit/venv/lib/python3.12/site-packages/google/genai/_live_converters.py", line 1406, in _LiveClientToolResponse_to_vertex _FunctionResponse_to_vertex(item, to_object) File "/home/ubuntu/livekit/venv/lib/python3.12/site-packages/google/genai/_live_converters.py", line 859, in _FunctionResponse_to_vertex raise ValueError('scheduling parameter is not supported in Vertex AI.') Facing this issue with Vertex AI
t
Thanks for reaching out, AANKIT. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like the error is happening because the
tool_response_scheduling
parameter isn’t supported in Vertex AI. No worries though—here’s how we can fix this together: 1. First, please double-check that the
tool_response_scheduling
parameter isn’t included in your model configuration when using Vertex AI. This parameter works only with the Google Gemini API. 2. If you do need the features that
tool_response_scheduling
offers, you can switch over to the Google Gemini API by setting
vertexai=False
and providing your Google API key either directly in the configuration or through the
GOOGLE_API_KEY
environment variable. 3. For your Vertex AI setup, make sure the
project
and
location
parameters are correctly set, either when you create the object or via the
GOOGLE_CLOUD_PROJECT
and
GOOGLE_CLOUD_LOCATION
environment variables. If you run into any more questions or need a hand with these steps, just let me know—I’m here to help! Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/gemini_t...