mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
working test_basic_openai_responses_api
This commit is contained in:
parent
b3999b4c75
commit
52b43f672b
1 changed files with 7 additions and 2 deletions
|
@ -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(
|
||||
@pytest.mark.asyncio
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue