forked from phoenix/litellm-mirror
Merge pull request #2692 from BerriAI/litellm_streaming_fixes
fix(utils.py): ensure last chunk is always empty delta w/ finish reason
This commit is contained in:
commit
eb859f5dba
8 changed files with 278 additions and 305 deletions
|
@ -547,7 +547,7 @@ def test_redis_cache_completion_stream():
|
|||
response_2_id = ""
|
||||
for chunk in response2:
|
||||
print(chunk)
|
||||
response_2_id += chunk.id
|
||||
response_2_id = chunk.id
|
||||
assert (
|
||||
response_1_id == response_2_id
|
||||
), f"Response 1 != Response 2. Same params, Response 1{response_1_id} != Response 2{response_2_id}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue