mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-13 15:07:47 +00:00
fix linting errors
This commit is contained in:
@@ -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: ignore
|
||||
return response
|
||||
|
||||
def list_batches(
|
||||
@@ -2646,7 +2646,7 @@ class OpenAIBatchesAPI(BaseLLM):
|
||||
return self.alist_batches( # type: ignore
|
||||
openai_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: ignore
|
||||
return response
|
||||
|
||||
|
||||
|
||||
@@ -5052,7 +5052,9 @@ async def list_batches(
|
||||
return response
|
||||
except 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(
|
||||
|
||||
Reference in New Issue
Block a user