The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test vertex ai text to speech
Ishaan Jaff225ff8432ded
diff --git a/litellm/tests/test_audio_speech.py b/litellm/tests/test_audio_speech.pyindex 5e0cf607796..129f4ea76ba 100644--- a/litellm/tests/test_audio_speech.py+++ b/litellm/tests/test_audio_speech.py@@ -121,7 +121,7 @@ async def test_audio_speech_router(mode):@pytest.mark.parametrize("sync_mode",- [False],+ [False, True],)@pytest.mark.asyncioasync def test_audio_speech_litellm_vertex(sync_mode):@@ -130,21 +130,15 @@ async def test_audio_speech_litellm_vertex(sync_mode):model = "vertex_ai/test"if sync_mode:response = litellm.speech(- model=model,- voice="alloy",+ model="vertex_ai/test",input="hello what llm guardrail do you have",)- from types import SimpleNamespace-- from litellm.llms.openai import HttpxBinaryResponseContent-response.stream_to_file(speech_file_path)else:response = await litellm.aspeech(- model=model,- voice="alloy",+ model="vertex_ai/",input="async hello what llm guardrail do you have",)