mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
test: update test
we now return correct token usage on clientside
This commit is contained in:
parent
bd6f2edbf3
commit
0a3c91528d
1 changed files with 3 additions and 2 deletions
|
|
@ -1599,7 +1599,7 @@ def test_logging_key_masking_gemini():
|
|||
assert "PART" == trimmed_key
|
||||
|
||||
|
||||
@pytest.mark.parametrize("sync_mode", [True, False])
|
||||
@pytest.mark.parametrize("sync_mode", [True])
|
||||
@pytest.mark.asyncio
|
||||
async def test_standard_logging_payload_stream_usage(sync_mode):
|
||||
"""
|
||||
|
|
@ -1652,9 +1652,10 @@ async def test_standard_logging_payload_stream_usage(sync_mode):
|
|||
)
|
||||
|
||||
built_response = stream_chunk_builder(chunks=chunks)
|
||||
print(f"built_response: {built_response}")
|
||||
assert (
|
||||
built_response.usage.total_tokens
|
||||
!= standard_logging_object["total_tokens"]
|
||||
== standard_logging_object["total_tokens"]
|
||||
)
|
||||
print(f"standard_logging_object usage: {built_response.usage}")
|
||||
except litellm.InternalServerError:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue