mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
Merge cfe0a43959
into b82af5b826
This commit is contained in:
commit
a2d887e724
1 changed files with 7 additions and 0 deletions
|
@ -35,6 +35,13 @@ class AzureBatchesAPI(BaseAzureLLM):
|
||||||
create_batch_data: CreateBatchRequest,
|
create_batch_data: CreateBatchRequest,
|
||||||
azure_client: AsyncAzureOpenAI,
|
azure_client: AsyncAzureOpenAI,
|
||||||
) -> LiteLLMBatch:
|
) -> LiteLLMBatch:
|
||||||
|
metadata = create_batch_data.get("metadata", {})
|
||||||
|
if metadata:
|
||||||
|
if "model_info" in metadata:
|
||||||
|
del metadata["model_info"]
|
||||||
|
if "caching_groups" in metadata:
|
||||||
|
del metadata["caching_groups"]
|
||||||
|
|
||||||
response = await azure_client.batches.create(**create_batch_data)
|
response = await azure_client.batches.create(**create_batch_data)
|
||||||
return LiteLLMBatch(**response.model_dump())
|
return LiteLLMBatch(**response.model_dump())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue