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] 使用插件进行联网搜索,多次询问后报错 #5455

Open
daizeyao-boomingtech opened this issue Jan 15, 2025 · 4 comments
Open
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@daizeyao-boomingtech
Copy link

📦 部署环境

Docker

📌 软件版本

1.46.3

💻 系统环境

Ubuntu

🌐 浏览器

Chrome

🐛 问题描述

image

image

使用插件进行联网搜索,多次询问后报错,开启新对话又没报错了,以上两个插件都有使用

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@daizeyao-boomingtech daizeyao-boomingtech added the 🐛 Bug Something isn't working | 缺陷 label Jan 15, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Jan 15, 2025
@lobehubbot
Copy link
Member

👀 @daizeyao-boomingtech

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
Copy link
Member

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


📦 Deployment environment

Docker

📌 Software version

1.46.3

💻 System environment

Ubuntu

🌐 Browser

Chrome

🐛 Problem description

image

image

Use the plug-in to search online. After asking multiple times, an error is reported. When opening a new conversation, no error is reported again. Both of the above plug-ins are used.

📷 Steps to reproduce

No response

🚦 Expected results

No response

📝 Supplementary information

No response

Copy link

dosubot bot commented Jan 15, 2025

I found a similar closed issue titled "[Bug] 插件多轮调用报错" which was resolved by a pull request that fixed the tools calling issue [1]. The fix was documented in the changelog for Version 1.33.2, addressing the problem of multi-turns tools calling [2].

In your case, the error message indicates an "invalid_request_error" due to an empty parameter in 'messages.8.tool_calls'. This might be related to how the plugins are handling state or requests during multiple interactions. You might want to check if the plugins are correctly managing state or if there are any updates or patches available that address this specific error in the version you are using (1.46.3).

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

Copy link

dosubot bot commented Jan 15, 2025

I found a similar closed issue titled "[Bug] 插件多轮调用报错" which was resolved by a pull request that fixed tools calling [1]. This might be related to the error you're experiencing with plugin calls resulting in an "invalid_request_error."

In the lobe-chat framework, handling of empty parameters in requests to the OpenAI service involves setting default values or fallbacks. For instance, parameters like frequency_penalty, presence_penalty, temperature, top_p, and max_tokens have default values if not explicitly provided [2][3].

If the error persists, it might be beneficial to check if the plugin configurations are correctly reset or reinitialized when starting a new conversation, as the framework uses a function called handleClear to ensure this [4][5].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

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