test_async_router_context_window_fallback

This commit is contained in:
Ishaan Jaff 2025-02-12 18:14:35 -08:00
parent 6f5440b5d8
commit 54811cf595

View file

@ -768,7 +768,10 @@ async def test_async_router_context_window_fallback(sync_mode):
else:
response = router.completion(
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
except Exception as e: