mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
Merge 121e52e370
into b82af5b826
This commit is contained in:
commit
e4b7445385
1 changed files with 12 additions and 0 deletions
|
@ -243,6 +243,18 @@ def exception_type( # type: ignore # noqa: PLR0915
|
|||
model=model,
|
||||
custom_llm_provider=custom_llm_provider,
|
||||
)
|
||||
# Special case for Fireworks AI rate limit error
|
||||
if (custom_llm_provider == "fireworks_ai" and
|
||||
"server overloaded, please try again later" in error_str):
|
||||
exception_mapping_worked = True
|
||||
raise RateLimitError(
|
||||
message=f"RateLimitError: Fireworks_aiException - {error_str}",
|
||||
model=model,
|
||||
llm_provider=custom_llm_provider,
|
||||
response=getattr(original_exception, "response", None),
|
||||
litellm_debug_info=extra_information,
|
||||
)
|
||||
|
||||
if (
|
||||
custom_llm_provider == "openai"
|
||||
or custom_llm_provider == "text-completion-openai"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue