mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
Cleanup test, at least pass with openai
This commit is contained in:
parent
119e75655f
commit
2cc9074d09
2 changed files with 5 additions and 39 deletions
|
@ -1361,7 +1361,7 @@ def exception_type(model, original_exception, custom_llm_provider):
|
|||
original_exception.llm_provider = "azure"
|
||||
else:
|
||||
original_exception.llm_provider = "openai"
|
||||
if "This model's maximum context length is" in original_exception.message:
|
||||
if "This model's maximum context length is" in original_exception._message:
|
||||
raise ContextWindowExceededError(
|
||||
message=str(original_exception),
|
||||
model=model,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue