Update main.py
Browse files
main.py
CHANGED
@@ -166,7 +166,7 @@ def handle_image_message(event):
|
|
166 |
store_user_message(user_id, "text", prompt)
|
167 |
|
168 |
history = [{"role": "user", "parts": [store_user_message]}]
|
169 |
-
if
|
170 |
history.append({"role": "model", "parts": [out]})
|
171 |
|
172 |
# 使用 Gemini 模型生成文字
|
|
|
166 |
store_user_message(user_id, "text", prompt)
|
167 |
|
168 |
history = [{"role": "user", "parts": [store_user_message]}]
|
169 |
+
if out:
|
170 |
history.append({"role": "model", "parts": [out]})
|
171 |
|
172 |
# 使用 Gemini 模型生成文字
|