Evaaaaa06 commited on
Commit
91cdf08
·
verified ·
1 Parent(s): d546491

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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 GeneAI:
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 模型生成文字