mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
Update route_llm_request.py
change ProxyModelNotFoundError detail type to str
This commit is contained in:
parent
89b5eeb345
commit
121b2139b0
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue