mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
Fix test_completion_cost_prompt_caching gemini parametrization
gemini/gemini-2.5-flash lacks cache_creation_input_token_cost in the model cost map, causing a TypeError when the test multiplies cache_creation_input_tokens by None. Use claude-haiku-4-5 instead, which has the required prompt caching cost fields. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c9f7075690
commit
82de82f1b6
1 changed files with 1 additions and 1 deletions
|
|
@ -1013,7 +1013,7 @@ def test_completion_cost_azure_common_deployment_name():
|
|||
"model, custom_llm_provider",
|
||||
[
|
||||
("claude-sonnet-4-6", "anthropic"),
|
||||
("gemini/gemini-2.5-flash", "gemini"),
|
||||
("claude-haiku-4-5", "anthropic"),
|
||||
],
|
||||
)
|
||||
def test_completion_cost_prompt_caching(model, custom_llm_provider):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue