From 121b2139b00be0d41772b8cafe9276856545221a Mon Sep 17 00:00:00 2001 From: whozwhat <38776815+whozwhat@users.noreply.github.com> Date: Wed, 26 Feb 2025 12:16:24 +0800 Subject: [PATCH] Update route_llm_request.py change ProxyModelNotFoundError detail type to str --- litellm/proxy/route_llm_request.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/proxy/route_llm_request.py b/litellm/proxy/route_llm_request.py index 6102a26b23..0932c7e228 100644 --- a/litellm/proxy/route_llm_request.py +++ b/litellm/proxy/route_llm_request.py @@ -26,9 +26,7 @@ ROUTE_ENDPOINT_MAPPING = { class ProxyModelNotFoundError(HTTPException): def __init__(self, route: str, model_name: str): - detail = { - "error": f"{route}: Invalid model name passed in model={model_name}. Call `/v1/models` to view available models for your key." - } + detail = f"{route}: Invalid model name passed in model={model_name}. Call `/v1/models` to view available models for your key." super().__init__(status_code=status.HTTP_400_BAD_REQUEST, detail=detail)