mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +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
|
@pytest.mark.asyncio
|
||||||
async def test_basic_openai_responses_delete_endpoint(self, sync_mode):
|
async def test_basic_openai_responses_delete_endpoint(self, sync_mode):
|
||||||
litellm._turn_on_debug()
|
litellm._turn_on_debug()
|
||||||
|
@ -208,16 +208,19 @@ class BaseResponsesAPITest(ABC):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
raise ValueError("response is not a ResponsesAPIResponse")
|
raise ValueError("response is not a ResponsesAPIResponse")
|
||||||
# else:
|
else:
|
||||||
# response = await litellm.aresponses(
|
response = await litellm.aresponses(
|
||||||
# input="Basic ping", max_output_tokens=20,
|
input="Basic ping", max_output_tokens=20,
|
||||||
# **base_completion_call_args
|
**base_completion_call_args
|
||||||
# )
|
)
|
||||||
|
|
||||||
# # async delete the response
|
# async delete the response
|
||||||
# await litellm.adelete_responses(
|
if isinstance(response, ResponsesAPIResponse):
|
||||||
# response_id=response.id,
|
await litellm.adelete_responses(
|
||||||
# )
|
response_id=response.id,
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
raise ValueError("response is not a ResponsesAPIResponse")
|
||||||
|
|
||||||
|
|
||||||
# @pytest.mark.parametrize("sync_mode", [True, False])
|
# @pytest.mark.parametrize("sync_mode", [True, False])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue