Skip to content

[Bug] 使用Gemini供应商时AI会对同一个内容发送三次响应 #7183

@Neko-Yukari

Description

@Neko-Yukari

What happened / 发生了什么

我在服务器上用docker形式跑着astrbot,napcat与singbox。在试图使用gemini提供的gemini 3.1 pro/flash对话时发现ai会对一次问题发送三次回复。事后从Google ai studio的后台可以看出仅出现了一次请求。(图中pro)

Image Image Image

Reproduce / 如何复现?

1.使用singbox容器配置代理
2.使用docker部署napcat+astrobot
3.添加gemini供应商
4.使用gemini的3.1 pro/flash进行对话

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

Astrbot v4.22.2 docker29.3
部署方式:1Panel + Docker(并非在应用商店)
适配器: Napcat/Astrbot网页对话

OS

Linux

Logs / 报错日志

从16:40:21.514开始

astrbot-20260330165818.log

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions