randydev commited on
Commit
e846e9b
1 Parent(s): 9a50199

Upload main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
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
- response = gt._get_response_gemini(item.query)
774
  return SuccessResponse(
775
  status="True",
776
  randydev={
777
- "message": response[0],
778
- "chat_history": response[1]
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: