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] 插件多轮调用报错 #4786

Closed
cookieY opened this issue Nov 25, 2024 · 6 comments · Fixed by #4789
Closed

[Bug] 插件多轮调用报错 #4786

cookieY opened this issue Nov 25, 2024 · 6 comments · Fixed by #4789
Assignees
Labels
🐛 Bug Something isn't working | 缺陷 plugin released

Comments

@cookieY
Copy link
Contributor

cookieY commented Nov 25, 2024

📦 部署环境

Docker

📌 软件版本

v1.33.0

💻 系统环境

macOS

🌐 浏览器

Chrome

🐛 问题描述

服务端部署 模式使用 openai 进行多轮对话并使用插件的场景下,除第一次调用插件成功外,后续均会报以下错误

image

以下是请求值

[
  {
    "content": "<plugins_info>\n<tools>\n<description>The tools you can use below</description>\n<tool name=\"Search Google via Serper\" identifier=\"search-engine-serper\">\n<tool_instructions>Plugin for performing web searches using the Serper.dev API to access Google search results.</tool_instructions>\n<api name=\"search-engine-serper____searchGoogle\">Search Google and return top 10 results</api>\n</tool>\n</tools>\n</plugins_info>",
    "role": "system"
  },
  {
    "content": "苹果股价",
    "role": "user"
  },
  {
    "content": "",
    "role": "assistant",
    "tool_calls": [
      {
        "function": {
          "arguments": "{\"q\":\"苹果股价\",\"gl\":\"cn\",\"hl\":\"zh\"}",
          "name": "search-engine-serper____searchGoogle"
        },
        "id": "call_1mBsIpDUYAOBxRusCcs23XQd",
        "type": "function"
      }
    ]
  },
  {
    "content": "当前苹果公司的股价为 **229.87美元**,上涨了1.35美元(0.59%)。以下是一些相关链接,可以查看更详细的实时行情和分析:\n\n1. [新浪财经 - 苹果股票](https://stock.finance.sina.com.cn/usstock/quotes/AAPL.html)\n2. [腾讯证券 - 苹果股票](https://gu.qq.com/usAAPL.OQ)\n3. [英为财情 - 苹果股票咨询](https://cn.investing.com/equities/apple-computer-inc)\n4. [东方财富 - 苹果股票行情](https://wap.eastmoney.com/quote/stock/105.AAPL.html)\n\n如果需要更多的信息或者其他相关数据,请告诉我!",
    "role": "assistant"
  },
  {
    "content": " google 呢",
    "role": "user"
  }
]

客户端直连 模式下没有这个情况

📷 复现步骤

No response

🚦 期望结果

支持插件多轮调用

📝 补充信息

No response

@cookieY cookieY added the 🐛 Bug Something isn't working | 缺陷 label Nov 25, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Nov 25, 2024
@lobehubbot
Copy link
Member

👀 @cookieY

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

@dosubot dosubot bot added the plugin label Nov 25, 2024
Copy link

dosubot bot commented Nov 25, 2024

I found a similar discussion that might be relevant to your issue. In the thread titled "[Q&A] 使用 coplilot-gpt4-service 时,调用插件没有后续对话?" on the Lobe Chat repository, it was mentioned that the copilot-gpt4-service does not support function calls, which could be related to the issue you're experiencing with plugin calls in server deployment mode [1].

If your issue is related to the OpenAI plugin system in Lobe Chat version v1.33.0, there might be specific configurations or limitations affecting the multi-round plugin calls. Unfortunately, I couldn't find specific known issues or limitations documented for this version regarding the OpenAI plugin system. However, ensuring that your configuration settings, such as API keys and endpoints, are correctly set up might help resolve the issue [2][3].

If the problem persists, reviewing the error messages or codes returned during the plugin call failures could provide more insight into the underlying issue [4][5][6][7].

To continue talking to Dosu, mention @dosu.

@arvinxx arvinxx self-assigned this Nov 25, 2024
@arvinxx
Copy link
Contributor

arvinxx commented Nov 25, 2024

应该是个 bug,晚上修下

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


It's probably a bug, I'll fix it tonight

@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Nov 25, 2024
@lobehubbot
Copy link
Member

@cookieY

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

@lobehubbot
Copy link
Member

🎉 This issue has been resolved in version 1.33.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

3 participants