mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
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@all-hands.dev>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user