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

[Bug] Qwen系列模型不支持Function Call #2824

Open
3 of 17 tasks
tianfy1258 opened this issue Jun 9, 2024 · 1 comment
Open
3 of 17 tasks

[Bug] Qwen系列模型不支持Function Call #2824

tianfy1258 opened this issue Jun 9, 2024 · 1 comment
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@tianfy1258
Copy link

tianfy1258 commented Jun 9, 2024

📦 部署环境

  • Official
  • Official Preview
  • Vercel / Zeabur / Sealos
  • Docker
  • Other

📌 软件版本

0.162.20

💻 系统环境

  • Windows
  • macOS
  • Ubuntu
  • Other Linux
  • iOS
  • Android
  • Other

🌐 浏览器

  • Chrome
  • Edge
  • Safari
  • Firefox
  • Other

🐛 问题描述

Qwen系列模型其实支持function call(例如qwen-turbo)
但是lobe-chat请求Qwen时,未传递result_format='message'参数,导致result_format默认为'text'。
此时,qwen会将函数调用放在response["output"]["text"]中,而不是response["output"]["choices"][0]["message"]["tool_calls"]
中,导致无法正常进行函数调用。

📷 复现步骤

  1. 自定义qwen系列模型,勾选函数调用选项。
  2. 启用插件(例如时钟时间)
  3. 进行对话,输入“显示当前时间”,请求大模型输出。

🚦 期望结果

展示时钟插件

📝 补充信息

No response

@tianfy1258 tianfy1258 added the 🐛 Bug Something isn't working | 缺陷 label Jun 9, 2024
@lobehubbot
Copy link
Member

👀 @tianfy1258

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

2 participants