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] claude 有点问题请求都发不出去 #324

Closed
MuRo-J opened this issue Nov 20, 2024 · 22 comments
Closed

[Bug] claude 有点问题请求都发不出去 #324

MuRo-J opened this issue Nov 20, 2024 · 22 comments
Labels
bug Something isn't working

Comments

@MuRo-J
Copy link

MuRo-J commented Nov 20, 2024

📦 Deployment Method

Vercel

📌 Version

lateset

💻 Operating System

macOS

📌 System Version

any

🌐 Browser

Chrome

📌 Browser Version

any

🐛 Bug Description

测试了下我自己部署的和大佬主页的
CleanShot 2024-11-20 at 21 38 33
表现还不太一样,但是最终都是无请求出去,
如果需要key我稍后发送您的Q

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@MuRo-J MuRo-J added the bug Something isn't working label Nov 20, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] claude has some problems and cannot send requests.

@MuRo-J
Copy link
Author

MuRo-J commented Nov 20, 2024

回滚合并多模型版本前的代码是可以的,
对前端代码苦手,无法定位原因啦,辛苦您

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


It is possible to roll back the code before merging multiple model versions.
I’m struggling with the front-end code, but I can’t pinpoint the reason. Thank you for your hard work.

@Hk-Gosuto
Copy link
Owner

是使用的claude官方API么?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Are you using claude's official API?

@MuRo-J
Copy link
Author

MuRo-J commented Nov 21, 2024

是使用的claude官方API么?

是的,已经发您Q 辛苦看看,能复现不

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Are you using claude's official API?

Yes, I have sent you the Q. Please take a look and see if you can reproduce it.

@Hk-Gosuto
Copy link
Owner

修复了,试试看吧。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Fixed it, give it a try.

@MuRo-J
Copy link
Author

MuRo-J commented Nov 22, 2024

修复了,试试看吧。

感谢感谢辛苦了,插件按钮是不能点亮的,否则还是会出现,这个是预期内的不

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Fixed, give it a try.

Thank you for your hard work. The plug-in button cannot be lit, otherwise it will still appear. This is unexpected.

@laxfer
Copy link

laxfer commented Nov 25, 2024

修复了,试试看吧。

现在的最新版本,确实还有问题,出现在anthropic无法调用插件的问题,经检查源码,问题出现在/ChatGPT-Next-Web-LangChain/blob/main/app/client/platforms/anthropic.ts中87行代码的这个函数上,toolAgentChat(options: AgentChatOptions): Promise {
throw new Error("Method not implemented.");
},从代码分析来看,你这边想改成ChatGPT-Next-Web主版本插件的原生调用,但是anthropic在调用插件的时候,还是执行到了toolAgentChat函数里面了,导致不输出结果。同样openai的虽然写了插件原生调用的代码,但是执行插件调用的时候,还是执行到了toolAgentChat函数里面。

@laxfer
Copy link

laxfer commented Nov 25, 2024

修复了,试试看吧。

感谢感谢辛苦了,插件按钮是不能点亮的,否则还是会出现,这个是预期内的不

最新版是有这个问题,@Hk-Gosuto 这个版本对插件原生支持这块改的不彻底,自己熟悉源码的话,可以改下,让插件执行的时候不调用toolAgentChat即可。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Fixed, give it a try.

Thank you for your hard work. The plug-in button cannot be lit, otherwise it will still appear. This is unexpected.

The latest version has this problem. @Hk-Gosuto This version has not completely changed the native support for plug-ins. If you are familiar with the source code, you can change it so that toolAgentChat is not called when the plug-in is executed.

@Hk-Gosuto
Copy link
Owner

今天晚些我再修改一下,之前同步上游代码的时候做了一些兼容处理,应该是处理的有些问题。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


I will make some modifications later today. I did some compatibility processing when synchronizing the upstream code. It should be that there are some problems.

@Hk-Gosuto
Copy link
Owner

已修复,同时增加了几个新的 claude 3.5 模型的函数调用。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Fixed and added several new function calls for the claude 3.5 model.

@laxfer
Copy link

laxfer commented Nov 28, 2024

已修复,同时增加了几个新的 claude 3.5 模型的函数调用。

看了你同步主版本的插件原生调用代码,toolAgentChat函数可以去掉了,也能跑起来,但是完全去掉,RAG功能就不行了。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Fixed and added several new function calls for the claude 3.5 model.

After looking at the native calling code of the plug-in you synchronized with the main version, I can see that the toolAgentChat function can be removed and it can run, but if it is completely removed, the RAG function will not work.

@Hk-Gosuto
Copy link
Owner

已修复,同时增加了几个新的 claude 3.5 模型的函数调用。

看了你同步主版本的插件原生调用代码,toolAgentChat函数可以去掉了,也能跑起来,但是完全去掉,RAG功能就不行了。

主分支用的原生 API 插件调用的方式实现的,我这里是基于 langchian 的实现,目前还不能兼容,我再考虑后面移除 langchian 部分的函数调用并保留已有的插件。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Fixed, and added several new function calls for the claude 3.5 model.

After looking at the native calling code of the plug-in that synchronizes the main version, I can see that the toolAgentChat function can be removed and it can still run. However, if it is completely removed, the RAG function will not work.

The main branch is implemented using native API plug-in calls. My implementation here is based on langchian, which is not yet compatible. I will consider removing the langchian part of the function calls later and retaining the existing plug-ins.

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
None yet
Development

No branches or pull requests

4 participants