mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fixing exception handling test
This commit is contained in:
parent
ffde46c1a1
commit
05aa99fde3
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ def test_context_window(model):
|
||||||
try:
|
try:
|
||||||
azure = model == "chatgpt-test"
|
azure = model == "chatgpt-test"
|
||||||
print(f"model: {model}")
|
print(f"model: {model}")
|
||||||
response = completion(model=model, messages=messages, custom_llm_provider=custom_llm_provider, logger_fn=logging_fn)
|
response = completion(model=model, messages=messages, custom_llm_provider="azure", logger_fn=logging_fn)
|
||||||
print(f"response: {response}")
|
print(f"response: {response}")
|
||||||
except InvalidRequestError:
|
except InvalidRequestError:
|
||||||
print("InvalidRequestError")
|
print("InvalidRequestError")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue