Commit b231d62
Changed files (1)
src
llm
src/llm/gpt.py
@@ -61,7 +61,7 @@ async def gpt_response(client: Client, message: Message, *, gpt_stream: bool = G
# ruff: noqa: RET502, RET503
info = parse_msg(message)
# send docs if message == "/ai", without reply
- if equal_prefix(info["text"], prefix=[PREFIX.GPT, "/gpt", "/gemini", "/ds", "/qwen", "/doubao"]) and not message.reply_to_message:
+ if info["mtype"] == "text" and equal_prefix(info["text"], prefix=[PREFIX.GPT, "/gpt", "/gemini", "/ds", "/qwen", "/doubao"]) and not message.reply_to_message:
await send2tg(client, message, texts=HELP, **kwargs)
return
if not is_gpt_conversation(message):