Spaces:
Running
Running
Upload main.py
Browse files
main.py
CHANGED
@@ -770,12 +770,12 @@ def gemini_pro(item: GeminiPro):
|
|
770 |
if item.is_multi_chat:
|
771 |
try:
|
772 |
gt = GeminiLatest(api_key=ASSISTANT_GOOGLE_API_KEYS)
|
773 |
-
|
774 |
return SuccessResponse(
|
775 |
status="True",
|
776 |
randydev={
|
777 |
-
"message":
|
778 |
-
"chat_history":
|
779 |
}
|
780 |
)
|
781 |
except Exception as e:
|
|
|
770 |
if item.is_multi_chat:
|
771 |
try:
|
772 |
gt = GeminiLatest(api_key=ASSISTANT_GOOGLE_API_KEYS)
|
773 |
+
answer, gemini_chat = gt._get_response_gemini(item.query)
|
774 |
return SuccessResponse(
|
775 |
status="True",
|
776 |
randydev={
|
777 |
+
"message": answer,
|
778 |
+
"chat_history": gemini_chat
|
779 |
}
|
780 |
)
|
781 |
except Exception as e:
|