mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix: keep legacy SDP rejection response immutable
This commit is contained in:
parent
5387efcb33
commit
966b047dd5
1 changed files with 1 additions and 1 deletions
|
|
@ -429,7 +429,7 @@ async def proxy_realtime_calls(
|
|||
decoded_payload: Final = _decode_realtime_token_payload(decrypted_token_value)
|
||||
if decoded_payload is None and decrypted_token_value.lstrip().startswith(("{", "[")):
|
||||
return Response(
|
||||
content=json.dumps({"error": "Invalid or expired token"}),
|
||||
content='{"error":"Invalid or expired token"}',
|
||||
status_code=http_status.HTTP_401_UNAUTHORIZED,
|
||||
media_type="application/json",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue