mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix: update test
This commit is contained in:
parent
f0a8f2b425
commit
51b229156e
1 changed files with 3 additions and 3 deletions
|
|
@ -269,9 +269,9 @@ class TestGPTImage15OutputImageTokens:
|
|||
f"Image tokens may not be included in cost calculation."
|
||||
)
|
||||
|
||||
def test_azure_gpt_image_15_output_image_tokens_cost(self):
|
||||
def test_azure_gpt_image_15_output_tokens_cost(self):
|
||||
"""
|
||||
Test that output image tokens are correctly included in cost calculation for Azure.
|
||||
Test that output tokens are correctly calculated in cost calculation for Azure.
|
||||
"""
|
||||
# Simulate gpt-image-1.5 response with output_tokens_details
|
||||
usage = Usage(
|
||||
|
|
@ -316,7 +316,7 @@ class TestGPTImage15OutputImageTokens:
|
|||
|
||||
assert abs(cost - expected_cost) < 1e-6, (
|
||||
f"Expected {expected_cost}, got {cost}. "
|
||||
f"Image tokens may not be included in cost calculation."
|
||||
f"Output tokens may be calculated in a wrong rate for Azure."
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue