mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(Feat - Batches API) add support for retrieving vertex api batch jobs (#7661)
* add _async_retrieve_batch * fix aretrieve_batch * fix _get_batch_id_from_vertex_ai_batch_response * fix batches docs
This commit is contained in:
parent
2507c275f6
commit
13f364682d
5 changed files with 177 additions and 2 deletions
|
@ -393,4 +393,10 @@ async def test_avertex_batch_prediction():
|
|||
metadata={"key1": "value1", "key2": "value2"},
|
||||
)
|
||||
print("create_batch_response=", create_batch_response)
|
||||
|
||||
retrieved_batch = await litellm.aretrieve_batch(
|
||||
batch_id=create_batch_response.id,
|
||||
custom_llm_provider="vertex_ai",
|
||||
)
|
||||
print("retrieved_batch=", retrieved_batch)
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue