Spaces:
Running
Running
Upload 2 files
Browse files
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
|
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 |
|