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

Closed
daizeyao-boomingtech opened this issue Jan 15, 2025 · 10 comments
Closed
Labels
🐛 Bug Something isn't working | 缺陷 ✅ Fixed Fixed | 已修复 Search 联网/搜索

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

@arvinxx arvinxx added the Search 联网/搜索 label Feb 12, 2025
@arvinxx
Copy link
Contributor

arvinxx commented Feb 24, 2025

似乎是由于历史记录超限导致的,这个我修一下把

@lobehubbot
Copy link
Member

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


It seems that it is caused by the historical record exceeding the limit, so I will fix this

@arvinxx
Copy link
Contributor

arvinxx commented Feb 27, 2025

@daizeyao-boomingtech 看下最新版是否还存在?

@lobehubbot
Copy link
Member

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


@daizeyao-boomingtech Check out if the latest version still exists?

@arvinxx arvinxx added the ✅ Fixed Fixed | 已修复 label Feb 27, 2025
@lobehubbot
Copy link
Member

👋 @{{ author }}


Since the issue was labeled with ✅ Fixed, but no response in 3 days. This issue will be closed. If you have any questions, you can comment and reply.
由于该 issue 被标记为已修复,同时 3 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

@lobehubbot lobehubbot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2025
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Mar 3, 2025
@lobehubbot
Copy link
Member

@daizeyao-boomingtech

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 ✅ Fixed Fixed | 已修复 Search 联网/搜索
Projects
Status: Done
Development

No branches or pull requests

3 participants