From 18b9f953c369b2adf0086965eace5700ae117eff Mon Sep 17 00:00:00 2001 From: enyst Date: Tue, 11 Nov 2025 22:51:47 +0000 Subject: [PATCH] cli: wrap litellm_extra_body payload inside {"metadata": ... } in get_llm_extra_body() Maintains previous structure expected by downstream, while still passing via litellm_extra_body (mapped to extra_body). Co-authored-by: openhands --- openhands-cli/openhands_cli/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openhands-cli/openhands_cli/utils.py b/openhands-cli/openhands_cli/utils.py index b83669c37d..28a764a3df 100644 --- a/openhands-cli/openhands_cli/utils.py +++ b/openhands-cli/openhands_cli/utils.py @@ -56,6 +56,7 @@ def get_llm_extra_body( metadata['session_id'] = session_id if user_id is not None: metadata['trace_user_id'] = user_id + metadata = {"metadata": metadata} return metadata