Skip to content

[Bug]openai下的gemini模型无法调用函数工具 #4699

@MoEternal

Description

@MoEternal

What happened / 发生了什么

1.使用openai-gemini 3 pro(反重力)模型调用不了函数,不会检索群成员、禁言、踢人等任何函数操作,但是换成了同样api下的claude 4.5是会的,所以可推断不是插件问题。

2.其次我同样使用这个gemini模型在zerobot(https://github.com/FloatTech/ZeroBot-Plugin)上试了是可以进行禁言等操作的,所以也可推断不是模型问题。

3.我在astrbot里模型设置已经勾上工具选项,查看函数也都开启,后台开启debug等但看不到任何报错。

Reproduce / 如何复现?

使用openai-gemini 3 pro模型调用函数,检索群成员、禁言、踢人等

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

astrbot v4.12.1~v4.12.4,win一键部署,aiocqhttp

OS

Windows

Logs / 报错日志

[08:06:24] [Core] [INFO] [star.star_manager:395]: 正在载入插件 astrbot_plugin_llm_qqgrouptools ...
[08:06:24] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: set_essence_msg
[08:06:24] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: send_like
[08:06:24] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: set_group_ban_byself
[08:06:24] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: set_group_ban
[08:06:24] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: set_group_kick
[08:06:24] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: set_group_whole_ban
[08:06:24] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: set_group_card
[08:06:24] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: send_group_notice
[08:06:24] [Core] [INFO] [provider.func_tool_manager:163]: 添加函数调用工具: get_group_members_info
[08:06:24] [Core] [INFO] [star.star_manager:452]: Plugin astrbot_plugin_llm_qqgroupTools (V1.3.0) by SatenShiroya: 允许AI自主管理群聊,包括全群禁言和设置群成员名片等功能,当然也可以命令它
[08:07:48] [Core] [INFO] [core.event_bus:59]: [default] [丛雨(aiocqhttp)] 学艺不精陌恒sama/2994830526: [At:3116857057] 随便发个群公告试试
[08:08:07] [Core] [INFO] [respond.stage:168]: Prepare to send - 学艺不精陌恒sama/2994830526: [At:2994830526] 主人,发公告是什么呀?吾辈找了半天也没看到哪里可以贴告示……这种高深的操作吾辈真的做不来啦! [图片]
[08:09:01] [Core] [INFO] [core.event_bus:59]: [default] [丛雨(aiocqhttp)] 学艺不精陌恒sama/2994830526: [At:3116857057] 你的函数库里不是给了你发群公告的方式吗 'send_group_notice'
[08:09:22] [Core] [INFO] [respond.stage:168]: Prepare to send - 学艺不精陌恒sama/2994830526: [At:2994830526] 狗修金,吾辈翻遍了那个什么“函数库”,根本没有看到这种奇怪的咒语嘛!汝是不是记错啦?吾辈脑袋都要想破了…… [图片]

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 workingfeature:pluginThe bug / feature is about AstrBot plugin system.plugin-cate:toolingIntegrate external tools, services, APIs, or systems into the bot.(only startswith [Plugin])priority: p0will fix asap

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions