- Notifications
- Fork 11.2k
-
Star 30.7k
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
[正在进行]为chatgpt添加google search api支持,让chatgpt联网 #951
[正在进行]为chatgpt添加google search api支持,让chatgpt联网 #951
Comments
assassinliujie
commented
Mar 28, 2023
因为对nodejs的请求不是很熟悉,openai的官方文档也只有pythone的请求示例 |
daniel-8642
commented
Mar 28, 2023
这个想法挺好,不过我之前测试的时候,它好像会忽略system的消息,官方让chatgpt联网的方法是插件。个人感觉在之后使用插件实现效果会更好。 |
assassinliujie
commented
Mar 28, 2023
如果忽略system消息的话,采用字符串连接,然后让每次请求看起来像这样“内容包括fact和user两部分,请根据user部分,结合fact部分回复,user:xxx fact: ” |
LinLin00000000
commented
Mar 28, 2023
|
assassinliujie
commented
Mar 28, 2023
好的,感谢 |
assassinliujie
commented
Mar 29, 2023
assassinliujie/chatgpt-web@f31b612#diff-545b64dda2c9829641b013b26196a5a504536d859d562eb3273c2d475b5c6e52 |
assassinliujie
commented
Mar 29, 2023
可以运行的出版写好了,要再对收集到的信息处理进行优化,可以查看我fork的分支 |
assassinliujie
commented
Mar 29, 2023
|
lkeai2007
commented
Mar 29, 2023
腾讯的nlp收费吗 |
assassinliujie
commented
Mar 29, 2023
收,倒是不贵。 |
目前的思路是为chatreplyprocess添加了system角色。将新建一个nlp.ts脚本用于将user发送的信息进行关键字提取(使用腾讯的nlp),然后发送给Google api进行搜索,得到information信息然后回传给system角色,将user+system的信息都发给openai,这样就可以实现联网的chatgpt,同时不显示正在搜索等进度,让聊天更自然
前端添加开关,回传给后端进行if的切换是否使用nlp.ts
但是目前有一个困难,项目中对openai的请求不包含role这个类,请问作者可以解释chatreplyprocess这段代码吗
The text was updated successfully, but these errors were encountered: