lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
44.34k stars 9.94k forks source link

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

Closed tianfy1258 closed 2 months ago

tianfy1258 commented 5 months ago

📦 部署环境

📌 软件版本

0.162.20

💻 系统环境

🌐 浏览器

🐛 问题描述

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

lobehubbot commented 5 months ago

👀 @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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot commented 2 months ago

✅ @tianfy1258

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。