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_anthropic_with_responses_api
Ishaan Jaff648e8d653366
diff --git a/litellm/proxy/proxy_config.yaml b/litellm/proxy/proxy_config.yamlindex 13724177c05..8a8fd6794e7 100644--- a/litellm/proxy/proxy_config.yaml+++ b/litellm/proxy/proxy_config.yaml@@ -1,8 +1,7 @@model_list:- - model_name: groq/*+ - model_name: anthropic/*litellm_params:- model: groq/*- api_key: bad+ model: anthropic/*- model_name: openai/*litellm_params:model: openai/*diff --git a/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py b/tests/openai_endpoints_tests/test_e2e_openai_responses_api.pyindex c2e17d3ef46..e637066d2f9 100644--- a/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py+++ b/tests/openai_endpoints_tests/test_e2e_openai_responses_api.py@@ -119,3 +119,12 @@ def test_bad_request_bad_param_error():client.responses.create(model="gpt-4o", input="This should fail", temperature=2000)++def test_anthropic_with_responses_api():+ client = get_test_client()+ response = client.responses.create(+ model="anthropic/claude-3-5-sonnet-20240620",+ input="just respond with the word 'ping'",+ previous_response_id="hi",+ )+ print("anthropic response=", response)