Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在lobechat中使用函数调用会出现问题,能否适配。对应的输出规范 #795

Closed
5 tasks done
lamcodes opened this issue Feb 26, 2025 · 6 comments
Closed
5 tasks done
Labels
enhancement New feature or request

Comments

@lamcodes
Copy link

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,已确定现有版本无法满足需求
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

功能描述

Image

在lobechat中使用联网查询插件,会出现调用失败的情况。lobechat的开发者反馈为:流式 tool calling 的chunk,需要严格按照 openai 的输出规范来。是同样一个query 带上 stream:true 触发 tools calling
lobehub/lobe-chat#6482 (comment)
应用场景
在lobechat中使用searxng联网查询,会出现函数调用的参数不符合规范,导致无法使用。需要调整输出规范

@lamcodes lamcodes added the enhancement New feature or request label Feb 26, 2025
@Calcium-Ion
Copy link
Owner

模型名和渠道类型呢

@Lynricsy
Copy link

模型名和渠道类型呢

claude-3-7-sonnet-20250219,Claude渠道

@lamcodes
Copy link
Author

模型名和渠道类型呢

oepnai渠道,gpt-4o-2024-11-20可以成功调用,claude-3-7-sonnet-20250219,claude-3-5-sonnet-20241022这两个模型不行

@Calcium-Ion
Copy link
Owner

v0.4.8.6已修复

@lamcodes
Copy link
Author

v0.4.8.6已修复

@Calcium-Ion openai渠道,claude-3-7-sonnet-20250219,claude-3-5-sonnet-20241022这两个模型依然不行,v0.4.8.6版本下。
{
"id": "toolu_01Kig86tWMPn5Em3VsgXqLx6",
"type": "builtin",
"apiName": "searchWithSearXNG",
"arguments": "{}{}{"query": "中国 今日新闻 2024最新消息", "searchEngines": ["google"]}",
"identifier": "lobe-web-browsing"
}

@Calcium-Ion
Copy link
Owner

Calcium-Ion commented Feb 26, 2025

如果你对接的上游,请让上游同步更新,通过官方key使用claude渠道接入没有问题

Image Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants