From 842d5a0762fe013dcf364cca1ce89a853b04523c Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Tue, 17 Feb 2026 20:51:51 +0530 Subject: [PATCH] Fix mypy issues --- litellm/llms/custom_httpx/llm_http_handler.py | 4 ++-- litellm/proxy/common_request_processing.py | 5 +++++ litellm/proxy/openai_evals_endpoints/endpoints.py | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/litellm/llms/custom_httpx/llm_http_handler.py b/litellm/llms/custom_httpx/llm_http_handler.py index ae553b03676..0a5364bfcfe 100644 --- a/litellm/llms/custom_httpx/llm_http_handler.py +++ b/litellm/llms/custom_httpx/llm_http_handler.py @@ -9544,7 +9544,7 @@ class BaseLLMHTTPHandler: try: response = await async_httpx_client.get( - url=url, headers=headers, params=query_params, timeout=timeout + url=url, headers=headers, params=query_params ) except Exception as e: raise self._handle_error( @@ -9649,7 +9649,7 @@ class BaseLLMHTTPHandler: try: response = await async_httpx_client.get( - url=url, headers=headers, timeout=timeout + url=url, headers=headers ) except Exception as e: raise self._handle_error( diff --git a/litellm/proxy/common_request_processing.py b/litellm/proxy/common_request_processing.py index 71ad1fba9e2..7dfa3bb239f 100644 --- a/litellm/proxy/common_request_processing.py +++ b/litellm/proxy/common_request_processing.py @@ -532,6 +532,11 @@ class ProxyBaseLLMRequestProcessing: "aupdate_eval", "adelete_eval", "acancel_eval", + "acreate_run", + "alist_runs", + "aget_run", + "acancel_run", + "adelete_run", ], version: Optional[str] = None, user_model: Optional[str] = None, diff --git a/litellm/proxy/openai_evals_endpoints/endpoints.py b/litellm/proxy/openai_evals_endpoints/endpoints.py index 2f1bb7839f8..d87fe01addf 100644 --- a/litellm/proxy/openai_evals_endpoints/endpoints.py +++ b/litellm/proxy/openai_evals_endpoints/endpoints.py @@ -775,7 +775,7 @@ async def list_runs( general_settings=general_settings, proxy_config=proxy_config, select_data_generator=select_data_generator, - model=data.get("model"), + model=str(data.get("model")) if data.get("model") is not None else None, user_model=user_model, user_temperature=user_temperature, user_request_timeout=user_request_timeout, @@ -848,7 +848,7 @@ async def get_run( if model: data["model"] = model - if "custom_llm_provider" not in data: + if "custom_llm_provider" not in data and custom_llm_provider is not None: data["custom_llm_provider"] = custom_llm_provider # Process request using ProxyBaseLLMRequestProcessing