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_completion_cohere_command_r_plus_function_call
Ishaan Jaffer39b0e76a33ab
diff --git a/tests/llm_translation/test_cohere.py b/tests/llm_translation/test_cohere.pyindex 76e94ed9598..a783d085ce2 100644--- a/tests/llm_translation/test_cohere.py+++ b/tests/llm_translation/test_cohere.py@@ -107,30 +107,6 @@ def test_completion_cohere_command_r_plus_function_call():assert isinstance(response.choices[0].message.tool_calls[0].function.arguments, str)-- messages.append(- response.choices[0].message.model_dump()- ) # Add assistant tool invokes- tool_result = (- '{"location": "Boston", "temperature": "72", "unit": "fahrenheit"}'- )- # Add user submitted tool results in the OpenAI format- messages.append(- {- "tool_call_id": response.choices[0].message.tool_calls[0].id,- "role": "tool",- "name": response.choices[0].message.tool_calls[0].function.name,- "content": tool_result,- }- )- # In the second response, Cohere should deduce answer from tool results- second_response = completion(- model="command-r-plus",- messages=messages,- tools=tools,- tool_choice="auto",- force_single_step=True,- )print(second_response)except litellm.Timeout:pass