Update api/routes.py
Browse files- api/routes.py +1 -1
api/routes.py
CHANGED
@@ -39,7 +39,7 @@ async def chat_completions(
|
|
39 |
if request.model not in [model["id"] for model in ALLOWED_MODELS]:
|
40 |
raise HTTPException(
|
41 |
status_code=400,
|
42 |
-
detail=f"Model {request.model} is not allowed. Allowed models are: {', '.join(model['id'] for model in ALLOWED_MODELS)
|
43 |
)
|
44 |
|
45 |
if request.stream:
|
|
|
39 |
if request.model not in [model["id"] for model in ALLOWED_MODELS]:
|
40 |
raise HTTPException(
|
41 |
status_code=400,
|
42 |
+
detail=f"Model {request.model} is not allowed. Allowed models are: {', '.join(model['id'] for model in ALLOWED_MODELS)}",
|
43 |
)
|
44 |
|
45 |
if request.stream:
|