mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
test_async_router_context_window_fallback
This commit is contained in:
parent
6f5440b5d8
commit
54811cf595
1 changed files with 4 additions and 1 deletions
|
@ -768,7 +768,10 @@ async def test_async_router_context_window_fallback(sync_mode):
|
||||||
else:
|
else:
|
||||||
response = router.completion(
|
response = router.completion(
|
||||||
model="gpt-4",
|
model="gpt-4",
|
||||||
messages=[{"role": "user", "content": "Who was Alexander?"}],
|
messages=[
|
||||||
|
{"role": "system", "content": text * 2},
|
||||||
|
{"role": "user", "content": "Who was Alexander?"},
|
||||||
|
],
|
||||||
)
|
)
|
||||||
assert "gpt-4-turbo" in response.model
|
assert "gpt-4-turbo" in response.model
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue