Spaces:
Sleeping
Sleeping
Update private_gpt/launcher.py
Browse files- private_gpt/launcher.py +2 -2
private_gpt/launcher.py
CHANGED
@@ -158,8 +158,8 @@ def create_app(root_injector: Injector) -> FastAPI:
|
|
158 |
|
159 |
return {"message": "LLM mode updated successfully"}
|
160 |
|
161 |
-
|
162 |
-
|
163 |
|
164 |
def custom_openapi() -> dict[str, Any]:
|
165 |
if app.openapi_schema:
|
|
|
158 |
|
159 |
return {"message": "LLM mode updated successfully"}
|
160 |
|
161 |
+
except Exception as e:
|
162 |
+
raise HTTPException(status_code=500, detail=f"Failed to update LLM mode: {e}")
|
163 |
|
164 |
def custom_openapi() -> dict[str, Any]:
|
165 |
if app.openapi_schema:
|