mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-28 01:32:17 +00:00
fix(vertex-ai): keep TTS metadata compatible with the cost map guard
This commit is contained in:
parent
a5403573ca
commit
f67e9794c3
6 changed files with 3 additions and 11 deletions
|
|
@ -288,7 +288,6 @@ def string_key_schemas(modes: tuple) -> dict[str, JsonSchema]:
|
|||
"type": "string",
|
||||
"enum": ["lyria_predict", "lyria_interactions"],
|
||||
},
|
||||
"health_check_voice": STRING,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -376,7 +375,9 @@ def render(schema: JsonSchema) -> str:
|
|||
|
||||
|
||||
def validation_errors(prices: dict, schema: JsonSchema) -> tuple:
|
||||
validator = jsonschema.Draft202012Validator(schema, format_checker=jsonschema.Draft202012Validator.FORMAT_CHECKER)
|
||||
validator = jsonschema.Draft202012Validator(
|
||||
schema, format_checker=jsonschema.Draft202012Validator.FORMAT_CHECKER
|
||||
)
|
||||
return tuple(
|
||||
f"{'.'.join(str(part) for part in error.absolute_path)}: {error.message}"
|
||||
for error in validator.iter_errors(prices)
|
||||
|
|
|
|||
|
|
@ -47687,7 +47687,6 @@
|
|||
"output_cost_per_audio_token": 2e-05,
|
||||
"output_cost_per_token": 2e-05,
|
||||
"source": "https://cloud.google.com/text-to-speech/pricing",
|
||||
"health_check_voice": "Kore",
|
||||
"max_input_tokens": 8192,
|
||||
"max_output_tokens": 16384,
|
||||
"max_tokens": 16384,
|
||||
|
|
@ -54492,7 +54491,6 @@
|
|||
"supports_web_search": false
|
||||
},
|
||||
"gemini-3.1-flash-tts-preview": {
|
||||
"health_check_voice": "Kore",
|
||||
"input_cost_per_token": 1e-06,
|
||||
"litellm_provider": "gemini",
|
||||
"max_input_tokens": 8192,
|
||||
|
|
|
|||
|
|
@ -47687,7 +47687,6 @@
|
|||
"output_cost_per_audio_token": 2e-05,
|
||||
"output_cost_per_token": 2e-05,
|
||||
"source": "https://cloud.google.com/text-to-speech/pricing",
|
||||
"health_check_voice": "Kore",
|
||||
"max_input_tokens": 8192,
|
||||
"max_output_tokens": 16384,
|
||||
"max_tokens": 16384,
|
||||
|
|
@ -54492,7 +54491,6 @@
|
|||
"supports_web_search": false
|
||||
},
|
||||
"gemini-3.1-flash-tts-preview": {
|
||||
"health_check_voice": "Kore",
|
||||
"input_cost_per_token": 1e-06,
|
||||
"litellm_provider": "gemini",
|
||||
"max_input_tokens": 8192,
|
||||
|
|
|
|||
|
|
@ -262,9 +262,6 @@
|
|||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"health_check_voice": {
|
||||
"type": "string"
|
||||
},
|
||||
"input_cost_per_audio_per_second": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ def test_gemini_3_1_flash_tts_model_metadata(model, provider):
|
|||
assert info["supports_audio_output"] is True
|
||||
assert info["supports_function_calling"] is False
|
||||
assert info["supports_prompt_caching"] is False
|
||||
assert info["health_check_voice"] == "Kore"
|
||||
|
||||
|
||||
def test_gemini_3_1_flash_tts_backup_matches_main():
|
||||
|
|
|
|||
|
|
@ -817,7 +817,6 @@ def test_aaamodel_prices_and_context_window_json_is_valid():
|
|||
"ocr_cost_per_page_batches": {"type": "number"},
|
||||
"ocr_cost_per_credit": {"type": "number"},
|
||||
"code_interpreter_cost_per_session": {"type": "number"},
|
||||
"health_check_voice": {"type": "string"},
|
||||
"inference_geo": {"type": "string"},
|
||||
"litellm_provider": {"type": "string"},
|
||||
"max_input_tokens": {"type": "number"},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue