test: update test
we now return correct token usage on clientside
This commit is contained in:
parent
d96df5e9be
commit
eb66daeef7
@ -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…
Reference in New Issue
Block a user