Skip to content

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]

working test_basic_openai_responses_api

Ishaan Jaff52b43f672b7c
diff --git a/tests/llm_responses_api_testing/test_openai_responses_api.py b/tests/llm_responses_api_testing/test_openai_responses_api.py
index 67581cec008..dc4f9308ef2 100644
--- a/tests/llm_responses_api_testing/test_openai_responses_api.py
+++ b/tests/llm_responses_api_testing/test_openai_responses_api.py
@@ -1,13 +1,18 @@
import os
import sys
+import pytest
sys.path.insert(0, os.path.abspath("../.."))
import litellm
+import json
-def test_basic_openai_responses_api():
- response = litellm.responses(
+async def test_basic_openai_responses_api():
+ litellm._turn_on_debug()
+ response = await litellm.aresponses(
model="gpt-4o", input="Tell me a three sentence bedtime story about a unicorn."
)
+ print("litellm response=", json.dumps(response, indent=4, default=str))
# validate_responses_api_response()