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
fix linting errors
Ishaan Jaff66211b42db08
diff --git a/litellm/llms/openai.py b/litellm/llms/openai.pyindex fab3ff26d27..d2ba7ac1348 100644--- a/litellm/llms/openai.py+++ b/litellm/llms/openai.py@@ -2609,7 +2609,7 @@ class OpenAIBatchesAPI(BaseLLM):limit: Optional[int] = None,):verbose_logger.debug("listing batches, after= %s, limit= %s", after, limit)- response = await openai_client.batches.list(after=after, limit=limit)+ response = await openai_client.batches.list(after=after, limit=limit) # type: ignorereturn responsedef list_batches(@@ -2646,7 +2646,7 @@ class OpenAIBatchesAPI(BaseLLM):return self.alist_batches( # type: ignoreopenai_client=openai_client, after=after, limit=limit)- response = openai_client.batches.list(after=after, limit=limit)+ response = openai_client.batches.list(after=after, limit=limit) # type: ignorereturn responsediff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex cbb62289bed..5a2970df51d 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -5052,7 +5052,9 @@ async def list_batches(return responseexcept Exception as e:await proxy_logging_obj.post_call_failure_hook(- user_api_key_dict=user_api_key_dict, original_exception=e, request_data=data+ user_api_key_dict=user_api_key_dict,+ original_exception=e,+ request_data={"after": after, "limit": limit},)verbose_proxy_logger.error("litellm.proxy.proxy_server.retrieve_batch(): Exception occured - {}".format(