mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
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:
commit
ceb8668e4a
16 changed files with 340 additions and 76 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue