Update main.py
Browse files
main.py
CHANGED
@@ -167,7 +167,7 @@ def handle_image_message(event):
|
|
167 |
store_user_message(user_id, "text", prompt)
|
168 |
# 使用 Gemini 模型生成文字
|
169 |
chat = model.start_chat(history = [])
|
170 |
-
completion = chat.send_message(
|
171 |
# 檢查生成結果是否為空
|
172 |
if (completion.parts[0].text != None):
|
173 |
# 取得生成結果
|
|
|
167 |
store_user_message(user_id, "text", prompt)
|
168 |
# 使用 Gemini 模型生成文字
|
169 |
chat = model.start_chat(history = [])
|
170 |
+
completion = chat.send_message(prompt, generation_config=generation_config)
|
171 |
# 檢查生成結果是否為空
|
172 |
if (completion.parts[0].text != None):
|
173 |
# 取得生成結果
|