Revert avglogprobs change + Add azure/gpt-4o-realtime-audio cost tracking (#9893)

* test: initial commit fixing gemini logprobs

Fixes https://github.com/BerriAI/litellm/issues/9888

* fix(vertex_and_google_ai_studio.py): Revert avglogprobs change

Fixes https://github.com/BerriAI/litellm/issues/8890

* build(model_prices_and_context_window.json): add gpt-4o-realtime-preview cost to model cost map

Fixes https://github.com/BerriAI/litellm/issues/9814

* test: add cost calculation unit testing

* test: fix test

* test: update test
This commit is contained in:
Krish Dholakia 2025-04-10 21:23:55 -07:00 committed by GitHub
parent 5aa0aded3e
commit 113d8522f5
9 changed files with 214 additions and 133 deletions

View file

@ -425,6 +425,7 @@ def test_aaamodel_prices_and_context_window_json_is_valid():
"cache_creation_input_audio_token_cost": {"type": "number"},
"cache_creation_input_token_cost": {"type": "number"},
"cache_read_input_token_cost": {"type": "number"},
"cache_read_input_audio_token_cost": {"type": "number"},
"deprecation_date": {"type": "string"},
"input_cost_per_audio_per_second": {"type": "number"},
"input_cost_per_audio_per_second_above_128k_tokens": {"type": "number"},
@ -549,7 +550,7 @@ def test_aaamodel_prices_and_context_window_json_is_valid():
"type": "array",
"items": {
"type": "string",
"enum": ["text", "image"],
"enum": ["text", "image", "audio"],
},
},
"supports_native_streaming": {"type": "boolean"},