mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
Mapped errors now carry the provider body, so code, param, and extra fields reach clients on every status, including /v1/messages before a stream starts. Chat mid-stream frames carry them too, and /v1/responses mid-stream frames carry the code and extra fields Logged error_code stays what it was at the base. Relayed text, OpenRouter, and OpenAI-route failures relay the provider code to the client and keep logging their HTTP status Relayed fields and param redact credentials and stop at the recursion cap, and the Responses bridge only names a field the caller sent Adapted for this line: /v1/completions relays the fields, the completion handler raises RelayOnlyBodyOpenAIError, the OpenAI Responses config defaults to the relay-only class, relayed OpenAI errors count as relay-only, Anthropic error envelopes stay out of the relay, moderations redacts param, and azure_ai needs no reset |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_claude_code_marketplace.py | ||
| test_claude_code_skill_access.py | ||
| test_endpoints.py | ||
| test_gateway_endpoints.py | ||
| test_skills_endpoints.py | ||
| test_streaming_model_restamp.py | ||