randydev commited on
Commit
b6f7272
·
1 Parent(s): 070a4e5

Upload 2 files

Browse files
Files changed (2) hide show
  1. main.py +1 -1
  2. models.py +0 -1
main.py CHANGED
@@ -771,7 +771,7 @@ def gemini_pro(item: GeminiPro):
771
  selected_api_key = ASSISTANT_GOOGLE_API_KEYS or item.gemini_api_key
772
  try:
773
  gt = GeminiLatest(api_key=selected_api_key, mongo_url=item.mongo_url, user_id=item.user_id)
774
- answer, gemini_chat = gt._get_response_gemini(item.query, item.gemini_chat)
775
  return SuccessResponse(
776
  status="True",
777
  randydev={
 
771
  selected_api_key = ASSISTANT_GOOGLE_API_KEYS or item.gemini_api_key
772
  try:
773
  gt = GeminiLatest(api_key=selected_api_key, mongo_url=item.mongo_url, user_id=item.user_id)
774
+ answer, gemini_chat = gt._get_response_gemini(item.query)
775
  return SuccessResponse(
776
  status="True",
777
  randydev={
models.py CHANGED
@@ -75,7 +75,6 @@ class GeminiPro(BaseModel):
75
  mongo_url: Optional[str] = None
76
  user_id: Optional[int] = None
77
  gemini_api_key: Optional[str] = None
78
- gemini_chat: Optional[list] = None
79
  is_login: Optional[bool] = False
80
  is_multi_chat: Optional[bool] = False
81
 
 
75
  mongo_url: Optional[str] = None
76
  user_id: Optional[int] = None
77
  gemini_api_key: Optional[str] = None
 
78
  is_login: Optional[bool] = False
79
  is_multi_chat: Optional[bool] = False
80