Update chatbot/plugins/chat.py
Browse files- chatbot/plugins/chat.py +1 -1
chatbot/plugins/chat.py
CHANGED
@@ -199,7 +199,7 @@ async def chatbot_talk(client: Client, message: Message):
|
|
199 |
if message.from_user.id in NOT_ALLOWED_NON_PROGRAMMER:
|
200 |
return
|
201 |
user = await users_collection.find_one({"user_id": message.from_user.id})
|
202 |
-
model_ = user.get("model") if user else ""
|
203 |
genai.configure(api_key=GOOGLE_API_KEY)
|
204 |
chat_user = await db.get_chatbot(message.chat.id)
|
205 |
if not chat_user:
|
|
|
199 |
if message.from_user.id in NOT_ALLOWED_NON_PROGRAMMER:
|
200 |
return
|
201 |
user = await users_collection.find_one({"user_id": message.from_user.id})
|
202 |
+
model_ = user.get("model") if user else "gemini-1.5-pro"
|
203 |
genai.configure(api_key=GOOGLE_API_KEY)
|
204 |
chat_user = await db.get_chatbot(message.chat.id)
|
205 |
if not chat_user:
|