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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
feat(files): add @client decorator to file operations (#15339)
Felipe Garéf12b8bf2c187
diff --git a/litellm/files/main.py b/litellm/files/main.pyindex 18be2c702bf..144b9291327 100644--- a/litellm/files/main.py+++ b/litellm/files/main.py@@ -268,6 +268,7 @@ def create_file(raise e+@clientasync def afile_retrieve(file_id: str,custom_llm_provider: Literal["openai", "azure"] = "openai",@@ -308,6 +309,7 @@ async def afile_retrieve(raise e+@clientdef file_retrieve(file_id: str,custom_llm_provider: Literal["openai", "azure"] = "openai",@@ -422,6 +424,7 @@ def file_retrieve(# Delete file+@clientasync def afile_delete(file_id: str,custom_llm_provider: Literal["openai", "azure"] = "openai",@@ -462,6 +465,7 @@ async def afile_delete(raise e+@clientdef file_delete(file_id: str,custom_llm_provider: Literal["openai", "azure"] = "openai",@@ -577,6 +581,7 @@ def file_delete(# List files+@clientasync def afile_list(custom_llm_provider: Literal["openai", "azure"] = "openai",purpose: Optional[str] = None,@@ -617,6 +622,7 @@ async def afile_list(raise e+@clientdef file_list(custom_llm_provider: Literal["openai", "azure"] = "openai",purpose: Optional[str] = None,@@ -729,6 +735,7 @@ def file_list(raise e+@clientasync def afile_content(file_id: str,custom_llm_provider: Literal["openai", "azure", "vertex_ai"] = "openai",@@ -771,6 +778,7 @@ async def afile_content(raise e+@clientdef file_content(file_id: str,model: Optional[str] = None,