mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
test(e2e): ask the streamed /v1/messages pin for a reply long enough to span several deltas
Anthropic now returns the 64-token 'count to 20' reply in one to three content_block_delta events, measured directly against api.anthropic.com and through proxies at7672399and49a1145alike, so the incrementality assertion (at least two deltas) failed in litellm-e2e builds 125, 130 and the 278 rerun with no proxy change behind it. A 'count to 100' reply at max_tokens 400 arrived in five to fifty deltas across every measured run
This commit is contained in:
parent
5df0e12e0f
commit
d6bc8fe289
1 changed files with 2 additions and 2 deletions
|
|
@ -169,9 +169,9 @@ class TestAnthropicMessages:
|
|||
key,
|
||||
AnthropicMessagesBody(
|
||||
model=model,
|
||||
max_tokens=64,
|
||||
max_tokens=400,
|
||||
stream=True,
|
||||
messages=[ChatMessage(role="user", content="Count from 1 to 20, one number per line.")],
|
||||
messages=[ChatMessage(role="user", content="Count from 1 to 100, one number per line.")],
|
||||
),
|
||||
)
|
||||
require_successful_call(result)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue