Skip to content

Commit

Permalink
🐛 Bug: Fix the bug in the Gemini message format.
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Jun 25, 2024
1 parent 638ae8d commit bdef9cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ async def command_bot(update, context, language=None, prompt=translator_prompt,
title = f"`🤖️ {engine}`\n\n"

message = get_image_message(image_url, [{"type": "text", "text": message}], engine)
if "gemini" in engine:
message = message[0]["text"]
await getChatGPT(update, context, title, robot, message, chatid, messageid, convo_id, message_thread_id, pass_history)
else:
message = await context.bot.send_message(
Expand Down

0 comments on commit bdef9cf

Please sign in to comment.