mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
test_basic_openai_responses_delete_endpoint
This commit is contained in:
parent
fbf6fb0c28
commit
168adb0c8c
1 changed files with 13 additions and 10 deletions
|
@ -189,7 +189,7 @@ class BaseResponsesAPITest(ABC):
|
|||
|
||||
|
||||
|
||||
@pytest.mark.parametrize("sync_mode", [True, False])
|
||||
@pytest.mark.parametrize("sync_mode", [False, True])
|
||||
@pytest.mark.asyncio
|
||||
async def test_basic_openai_responses_delete_endpoint(self, sync_mode):
|
||||
litellm._turn_on_debug()
|
||||
|
@ -208,16 +208,19 @@ class BaseResponsesAPITest(ABC):
|
|||
)
|
||||
else:
|
||||
raise ValueError("response is not a ResponsesAPIResponse")
|
||||
# else:
|
||||
# response = await litellm.aresponses(
|
||||
# input="Basic ping", max_output_tokens=20,
|
||||
# **base_completion_call_args
|
||||
# )
|
||||
else:
|
||||
response = await litellm.aresponses(
|
||||
input="Basic ping", max_output_tokens=20,
|
||||
**base_completion_call_args
|
||||
)
|
||||
|
||||
# # async delete the response
|
||||
# await litellm.adelete_responses(
|
||||
# response_id=response.id,
|
||||
# )
|
||||
# async delete the response
|
||||
if isinstance(response, ResponsesAPIResponse):
|
||||
await litellm.adelete_responses(
|
||||
response_id=response.id,
|
||||
)
|
||||
else:
|
||||
raise ValueError("response is not a ResponsesAPIResponse")
|
||||
|
||||
|
||||
# @pytest.mark.parametrize("sync_mode", [True, False])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue