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(together_ai): assert fail-open supported params for models missing from the registry
mateo-berribcb6a0a998c5
diff --git a/tests/llm_translation/test_together_ai.py b/tests/llm_translation/test_together_ai.pyindex c371caefa5e..fd7ad40ed11 100644--- a/tests/llm_translation/test_together_ai.py+++ b/tests/llm_translation/test_together_ai.py@@ -23,26 +23,18 @@ class TestTogetherAI(BaseLLMChatTest):pass@pytest.mark.parametrize(- "model, expected_bool",+ "model",[- ("meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo", True),- ("nvidia/Llama-3.1-Nemotron-70B-Instruct-HF", False),+ "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",+ "nvidia/Llama-3.1-Nemotron-70B-Instruct-HF",],)- def test_get_supported_response_format_together_ai(- self, model: str, expected_bool: bool- ) -> None:+ def test_get_supported_response_format_together_ai(self, model: str) -> None:os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True"litellm.model_cost = litellm.get_model_cost_map(url="")optional_params = litellm.get_supported_openai_params(model, custom_llm_provider="together_ai")- # Mapped providerassert isinstance(optional_params, list)-- if expected_bool:- assert "response_format" in optional_params- assert "tools" in optional_params- else:- assert "response_format" not in optional_params- assert "tools" not in optional_params+ assert "response_format" in optional_params+ assert "tools" in optional_params