mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
test_basic_openai_responses_api_non_streaming_with_logging
This commit is contained in:
parent
c60a13c919
commit
4fb521c251
1 changed files with 3 additions and 3 deletions
|
|
@ -165,13 +165,13 @@ def validate_responses_match(slp_response, litellm_response):
|
|||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
def test_basic_openai_responses_api_non_streaming_with_logging():
|
||||
async def test_basic_openai_responses_api_non_streaming_with_logging():
|
||||
litellm._turn_on_debug()
|
||||
litellm.set_verbose = True
|
||||
test_custom_logger = TestCustomLogger()
|
||||
litellm.callbacks = [test_custom_logger]
|
||||
request_model = "gpt-4o"
|
||||
response = litellm.responses(
|
||||
response = await litellm.aresponses(
|
||||
model=request_model,
|
||||
input="hi",
|
||||
)
|
||||
|
|
@ -180,7 +180,7 @@ def test_basic_openai_responses_api_non_streaming_with_logging():
|
|||
print("response hidden params=", response._hidden_params)
|
||||
|
||||
print("sleeping for 2 seconds...")
|
||||
time.sleep(5)
|
||||
await asyncio.sleep(5)
|
||||
print(
|
||||
"standard logging payload=",
|
||||
json.dumps(test_custom_logger.standard_logging_object, indent=4, default=str),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue