fix(vertex-ai): keep TTS metadata compatible with the cost map guard

This commit is contained in:
Emerson Gomes 2026-09-15 12:35:26 -05:00
parent a5403573ca
commit f67e9794c3
No known key found for this signature in database
GPG key ID: D3DF28AB5D1B5E17
6 changed files with 3 additions and 11 deletions

View file

@ -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)

View file

@ -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,

View file

@ -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,

View file

@ -262,9 +262,6 @@
"minimum": 0
}
},
"health_check_voice": {
"type": "string"
},
"input_cost_per_audio_per_second": {
"type": "number",
"minimum": 0

View file

@ -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():

View file

@ -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"},