Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -858,8 +858,8 @@ def beta_rag(item: BetaRags):
|
|
858 |
status="True",
|
859 |
randydev={"message": answer}
|
860 |
)
|
861 |
-
except Exception:
|
862 |
-
return SuccessResponse(status="False", randydev={"message":
|
863 |
|
864 |
@app.post("/ryuzaki/gemini-ai-pro", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
865 |
def gemini_pro(item: GeminiPro):
|
|
|
858 |
status="True",
|
859 |
randydev={"message": answer}
|
860 |
)
|
861 |
+
except Exception as e:
|
862 |
+
return SuccessResponse(status="False", randydev={"message": str(e)})
|
863 |
|
864 |
@app.post("/ryuzaki/gemini-ai-pro", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
865 |
def gemini_pro(item: GeminiPro):
|