This commit is contained in:
whozwhat 2025-04-24 00:59:35 -07:00 committed by GitHub
commit 4fe86b9a81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,9 +27,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)