chilly-france-44439
11/18/2025, 4:36 PMchilly-france-44439
11/18/2025, 4:36 PMLLM_MODEL="litellm_proxy/vertex_ai/gemini-3-pro-preview" uv run examples/01_standalone_sdk/01_hello_world.py
ands-sdk/openhands/sdk/conversation/impl/local_conversation.py", line 337, in run
raise ConversationRunError(self._state.id, e) from e
openhands.sdk.conversation.exceptions.ConversationRunError: Conversation run failed for id=4af8e118-92a4-44da-925b-b3fb4640f543: litellm.BadRequestError: Error code: 400 - {'error': {'message': 'litellm.BadRequestError: Vertex_aiException BadRequestError - {\n "error": {\n "code": 400,\n "message": "Request contains an invalid argument.",\n "status": "INVALID_ARGUMENT"\n }\n}\n. Received Model Group=vertex_ai/gemini-3-pro-preview\nAvailable Model Group Fallbacks=None', 'type': None, 'param': None, 'code': '400'}}chilly-france-44439
11/18/2025, 4:37 PMexamples/01_standalone_sdk/27_observability_laminar.py), the error seems to happen when we send "thinking_blocks" to Geminichilly-france-44439
11/18/2025, 4:37 PMcalm-artist-7206
11/18/2025, 4:42 PMthinking has the tool calllimited-student-10747
11/18/2025, 4:43 PMlimited-student-10747
11/18/2025, 4:43 PMcalm-artist-7206
11/18/2025, 4:44 PMTo ensure the model maintains full context across multiple turns of a conversation, you must return the thought signatures from previous responses in your subsequent requests. If a required thought signature is not returned when using Gemini 3 Pro, the model returns a 400 error.
calm-artist-7206
11/18/2025, 4:49 PMIf the model returns parallel function calls (for example, FC1+signature, FC2), your response must contain all function calls followed by all function responses (FC1+signature, FC2, FR1, FR2). Interleaving responses (FC1+signature, FR1, FC2, FR2) results in a 400 error.
chilly-france-44439
11/18/2025, 4:50 PMcalm-artist-7206
11/18/2025, 4:52 PMchilly-france-44439
11/18/2025, 4:54 PMThinkingBlock back to LiteLLM so it works. Asking OH on how we can do that..
https://docs.cloud.google.com/vertex-ai/generative-ai/docs/thought-signatures#chat-completions_1calm-artist-7206
11/18/2025, 4:55 PMchilly-france-44439
11/18/2025, 4:58 PMchilly-france-44439
11/18/2025, 4:59 PMchilly-france-44439
11/18/2025, 4:59 PMthinking_blockschilly-france-44439
11/18/2025, 4:59 PMchilly-france-44439
11/18/2025, 5:01 PMchilly-france-44439
11/18/2025, 5:01 PMmillions-crayon-32880
11/18/2025, 5:07 PMlimited-student-10747
11/19/2025, 4:19 PMlimited-student-10747
11/19/2025, 4:58 PM