Closed ccdanpian closed 9 months ago
👀 @ccdanpian
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
另外,只要出现这个错误后,继续在当前会话发任何消息,都回复这个报错: { "endpoint": "https://api.openai.com/v1", "error": { "message": "Missing parameter 'name': messages with role 'function' must have a 'name'.", "type": "invalid_request_error", "param": "messages.[1].name", "code": null } }
导出一份记录,把里面敏感信息删了,发出来看看呢
应该是从 function_call 迁移到 tool_calls 的bug,我修一下
LobeChat-sessions-v2.json 我上传了助手和消息。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
LobeChat-sessions-v2.json I uploaded the assistant and message.
✅ @ccdanpian
This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。
:tada: This issue has been resolved in version 0.118.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
已经不会出现之前的错误了。但是经常会出现超时或者无响应的问题。 1)超时的时候,我手动去copy链接直接访问,确实时间会稍微长一点(3s左右),但是还是可以正常获取到数据的。 2)无响应不知道是否插件本身连接的问题。
1)超时的时候,我手动去copy链接直接访问,确实时间会稍微长一点(3s左右),但是还是可以正常获取到数据的。 2)无响应不知道是否插件本身连接的问题。
我说明下原理。这个插件通过 Puppeteer 无头浏览器加载页面来获取内容,因此这段时间不可控,跟网页版本身的快慢也有关系。
然后 LobeChat 的插件 gateway 的请求超时时间为 10s ,如果超时就会报你下面截图那个错误。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
1) When it times out, I manually go to the copy link to access it directly. It does take a little longer (about 3s), but the data can still be obtained normally. 2) No response. I don’t know whether the plug-in itself is connected.
Let me explain the principle. This plug-in loads the page through the Puppeteer headless browser to obtain the content, so this period of time is uncontrollable and is also related to the speed of the web version itself.
Then the request timeout of LobeChat's plug-in gateway is 10s. If it times out, the error shown in the screenshot below will be reported.
💻 系统环境 | Operating System
Windows
🌐 浏览器 | Browser
Chrome
🐛 问题描述 | Bug Description
从插件检测返回值: {"tool_calls":[ {"id": "call_bo82skFq25VLGsYiqo4CWCCD", "type": "function", "function": {"name": "website-crawler____getWebsiteContent", "arguments": "{\n \"url\": \"http:\/\/export.arxiv.org\/api\/query?search_query=ti:chatgpt&sortBy=lastUpdatedDate&sortOrder=descending\"\n}"}}
🚦 期望结果 | Expected Behavior
No response
📷 复现步骤 | Recurrence Steps
No response
📝 补充信息 | Additional Information
No response