forked from phoenix/litellm-mirror
test - list batches
This commit is contained in:
parent
43a06f408c
commit
4206354ee7
1 changed files with 8 additions and 0 deletions
|
@ -72,6 +72,10 @@ def test_create_batch():
|
|||
|
||||
assert retrieved_batch.id == create_batch_response.id
|
||||
|
||||
# list all batches
|
||||
list_batches = litellm.list_batches(custom_llm_provider="openai", limit=2)
|
||||
print("list_batches=", list_batches)
|
||||
|
||||
file_content = litellm.file_content(
|
||||
file_id=batch_input_file_id, custom_llm_provider="openai"
|
||||
)
|
||||
|
@ -140,6 +144,10 @@ async def test_async_create_batch():
|
|||
|
||||
assert retrieved_batch.id == create_batch_response.id
|
||||
|
||||
# list all batches
|
||||
list_batches = await litellm.alist_batches(custom_llm_provider="openai", limit=2)
|
||||
print("list_batches=", list_batches)
|
||||
|
||||
# try to get file content for our original file
|
||||
|
||||
file_content = await litellm.afile_content(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue