revert sign_request content change - request_data expects dict, not bytes

Bedrock's sign_request calls json.dumps(request_data) — passing content bytes
would TypeError. sign_request should only receive data/json (dict), not raw bytes.
This commit is contained in:
Ishaan Jaffer 2026-03-05 09:32:35 -08:00
parent 11d7b39e77
commit 210d9bf428

View file

@ -277,7 +277,7 @@ def llm_passthrough_route(
headers, signed_json_body = provider_config.sign_request(
headers=headers,
litellm_params=litellm_params_dict,
request_data=data if data else (json if json else content),
request_data=data if data else json,
api_base=str(updated_url),
model=model,
)