mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +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,
|
||||
azure_client: AsyncAzureOpenAI,
|
||||
) -> 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)
|
||||
return LiteLLMBatch(**response.model_dump())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue