Merge pull request #9220 from BerriAI/litellm_qa_responses_api

[Fixes] Responses API - allow /responses and subpaths as LLM API route + Add exception mapping for responses API
This commit is contained in:
Ishaan Jaff 2025-03-13 21:36:59 -07:00 committed by GitHub
commit ceb8668e4a
16 changed files with 340 additions and 76 deletions

View file

@ -127,7 +127,7 @@ def exception_type( # type: ignore # noqa: PLR0915
completion_kwargs={},
extra_kwargs={},
):
"""Maps an LLM Provider Exception to OpenAI Exception Format"""
if any(
isinstance(original_exception, exc_type)
for exc_type in litellm.LITELLM_EXCEPTION_TYPES