Hk-Gosuto / ChatGPT-Next-Web-LangChain

一键拥有你自己的 ChatGPT 网页服务。 One-Click to deploy your own ChatGPT web UI.(基于 langchain 实现的插件版本 Plugin version implemented based on langchain)
https://n3xt.chat
MIT License
1.15k stars 386 forks source link

想问个新手问题 #62

Closed superen7527 closed 11 months ago

superen7527 commented 11 months ago

说说我的情况:原项目那边过来的,看到有插件就重新部署的这个。但是没有很明确的教程用法,已经跟着文档有的地方能申请的都申请放进环境变量,然后还是只能用普通对话,无法触发插件。

然后又测试琢磨好久用不了,我就分析原因:

我一开始以为这个是先通过gpt分析语义然后进一步根据关键词自动执行插件,毕竟是langchain嘛应该有分析能力,一直不行跟着文档一样一起问也不行,我才想:这个是不是用的是官方接口,对接的是官方的plus账号才能用的插件,就是需要api4的接口?而且我想着dalle官网是只有4才有权限能用,这个项目填了cf就能用连api都不需要,应该不是因为dalle是免费公开接口,而是通过key来申请对接的,cf只是转存资源反代链接。就更证实了这个想法。

不知道是不是这样,而且我没国外信用卡,用的是搭建的对话转api模拟api,正常聊天可以和3.5一样,如果是根据返回的语义实现的,那么应该没问题才对。可是看到文档说除了两个模型其他又都支持插件我又奇怪了,这么说就是3.5的api也能用这个插件,官网不是不支持吗。那就是说要不api有额外的使用接口,要不就是我这个模拟的api实际上接口还是不全。不过我没有办法弄到key测试了。只能猜想论证,又和上面的想法冲突了,如果3.5key能用dalle,那为什么还要plus会员才能用。又死循环了。

我看issue结果好像都是资深使用的大佬问题,不好意思开issue打扰,怕太低级了。大家都会用就我不会是不是哪里遗漏了。然后自己又花了两天把项目看来看去。重新搞(除了搜索api看了要付费申请和收不到验证码以外想着vercel会反代就写的谷歌还有那个sd画图的项目全英文看不太懂没搭建以外其他都弄了)。看着看着又感觉和官方api没关系,搜索要搜索引擎key,画图要搭建sd,都不是依赖openai的。又绕回去感觉像是根据语义自动使用插件。

实在不知道咋回事了,才想着发一个issue吧,如果真的很没意义就直接关了吧。我也不是不自己花时间找办法就伸手党问问题,实在是不玩这个圈子有点迷糊,项目大部分都是指向langchain链接我不玩人工智能有点看不懂。如果有人能指点一下用法万分感激。如果觉得我这个问题很棘手或者要花比较多的时间,那就算了和我说一下我就用回原项目好了。

如果有打扰到大家实在抱歉。

Issues-translate-bot commented 11 months ago

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


Title: I want to ask a newbie question

Let me talk about my situation: I came from the original project and redeployed this one when I saw the plug-in. However, there is no very clear tutorial on how to use it. I have followed the documentation and applied for environment variables in some places. Then I can only use ordinary dialogue and cannot trigger the plug-in.

Then I tested and figured out that it couldn’t be used for a long time, so I analyzed the reasons:

At first I thought this was to first analyze the semantics through gpt and then automatically execute the plug-in based on the keywords. After all, it is langchain and it should have analytical capabilities. I couldn’t follow the documentation and ask questions, so I thought: is this using the official one? The interface is connected to a plug-in that can only be used with an official plus account. Does it require an API4 interface? And I think that only 4 people have permission to use Dalle's official website. This project can be used by filling in CF and does not even need API. It should not be because Dalle is a free public interface, but to apply for docking through key. CF is just a transfer Save resource reverse link. This further confirms this idea.

I don’t know if this is the case, and I don’t have a foreign credit card. I use the built conversation-to-API simulation API. Normal chat can be the same as 3.5. If it is implemented based on the returned semantics, then there should be no problem. But I was surprised when I saw the document saying that except for two models, all other models support plug-ins. So even the 3.5 API can also use this plug-in. Doesn’t the official website not support it? That means that either the API has additional interfaces, or my simulated API actually has incomplete interfaces. But I can't get the key to test. I can only guess at the argument, and it conflicts with the above idea. If 3.5key can use dalle, then why does it need plus membership to use it? It's an endless cycle again.

I see that the issue results seem to be issues raised by experienced users. I’m sorry to bother you by opening an issue, because I’m afraid it’s too low-level. Everyone knows how to use it, so I don’t know if I’ve missed it somewhere. Then I spent another two days looking over the project. Do it again. I even applied for several apikey places, but the SD drawing person couldn't understand it. After looking at it, I feel that it has nothing to do with the official API. Searching requires a search engine key, and drawing requires building an SD. They do not rely on OpenAI. Coming around again it feels like automatically using plugins based on semantics.

I really don't know what's going on, so I thought of posting an issue. If it's really pointless, just close it. It’s not like I just ask questions without taking the time to solve them myself. I’m really a little confused because I don’t play in this industry. I would be very grateful if anyone could give me some pointers on how to use it. If you think my problem is difficult or takes a lot of time, just forget it and tell me and I will go back to the original project.

I'm sorry if I disturbed you all.

Hk-Gosuto commented 11 months ago

项目使用的是 langchain agent 来实现的插件调用,可以参考这篇文档了解 openai_functions_agent ,核心还是用到了 openai 官方接口的 function call 功能来实现的,这就导致需要你使用官方的 api 接口或者有一个支持 function call 的微调模型接口才能使用本项目的函数调用功能。

superen7527 commented 11 months ago

感谢解答 终于解决了我的疑惑

Issues-translate-bot commented 11 months ago

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


Thanks for the answer. It finally solved my doubts.