mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
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:
parent
11d7b39e77
commit
210d9bf428
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue