Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Merge branch 'litellm_internal_staging' into fix-managed-files-null-object

mateo-berrif270b531449e
diff --cc enterprise/litellm_enterprise/proxy/hooks/managed_files.py
index b8c97dd2bb5,d57c1a78f3d..ec47b6ac0e6
--- a/enterprise/litellm_enterprise/proxy/hooks/managed_files.py
+++ b/enterprise/litellm_enterprise/proxy/hooks/managed_files.py
@@@ -382,11 -382,7 +382,11 @@@ class _PROXY_LiteLLMManagedFiles(Custom
"flat_model_file_ids": {"hasSome": model_object_ids},
}
)
- return [OpenAIFileObject.model_validate(file_object.file_object) for file_object in file_ids]
+ return [
- OpenAIFileObject(**file_object.file_object)
++ OpenAIFileObject.model_validate(file_object.file_object)
+ for file_object in file_ids
+ if file_object.file_object is not None
+ ]
async def check_managed_file_id_access(
self, data: Dict, user_api_key_dict: UserAPIKeyAuth