Git Product home page Git Product logo

Comments (11)

whyiyhw avatar whyiyhw commented on August 16, 2024

这部分功能还在完善,文档也还在写,最近加班太厉害,可能没那么快。
目前的机制跟 openai 一样,写好配置,然后启动你的插件服务,就会自动使用了,
代码里有一个简单的日期插件,你可以看下

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

No description provided.

加入了一个 search 插件 感觉效果还不错,你可以试试 ,

cd plugins 
docker-composer build &&  docker-composer up -d
# 再根据配置把 chat-api.yaml 的 插件部分配置填入就行

from chatgpt-wechat.

itrilogy avatar itrilogy commented on August 16, 2024

这里是需要把plugins作为一个整体做一次docker-composer吗?
那在插件配置方面,填入这个docker的相关信息即可,是吗?包括地址、端口等。

from chatgpt-wechat.

mistypig avatar mistypig commented on August 16, 2024

@whyiyhw >

大佬,搜索插件启动成功,也搜索到内容了,但返回的信息中没有搜索出来的内容。
搜索到的内容只会作为提示上下文发给GPT吗?但感觉回答的内容和搜索出来的信息并没有关联呢。
另外,是否可以支持#enable_plugin: search ,#disable_plugin: search 命令启动和关闭插件功能,不然每次提问都会走插件过一次,有时候并不需要做搜索。
谢谢大佬!

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

@whyiyhw >

大佬,搜索插件启动成功,也搜索到内容了,但返回的信息中没有搜索出来的内容。 搜索到的内容只会作为提示上下文发给GPT吗?但感觉回答的内容和搜索出来的信息并没有关联呢。 另外,是否可以支持#enable_plugin: search ,#disable_plugin: search 命令启动和关闭插件功能,不然每次提问都会走插件过一次,有时候并不需要做搜索。 谢谢大佬!

目前确实会每次都会判断是否使用插件,插件管理这块确实还没来得及做,我周末再改下,这个建议很不错~

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

这里是需要把plugins作为一个整体做一次docker-composer吗? 那在插件配置方面,填入这个docker的相关信息即可,是吗?包括地址、端口等。

是的,目前是打算做一个总体进行启动,相关的配置信息已经在完整配置文件里面了

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

插件部分,基础已完成。文档已更新,https://github.com/whyiyhw/chatgpt-wechat/blob/main/doc/plugin.md

from chatgpt-wechat.

 avatar commented on August 16, 2024

谢谢。
请问下,插件配置里
API:
URL: "http://192.168.1.202:8885/search" # 插件接口地址,默认 post 调用

这个192.168.1.202是什么的IP?我们自己在服务器上部署的时候应该使用啥?

from chatgpt-wechat.

 avatar commented on August 16, 2024

plugins的容器应该是在chat_network,而且需要assign特定的ip地址,然后api的url才能够从web的容器里访问到吧?
image

image

我把他们移到t同一个docker-compose.yml,然后放在同一个network下了 对么

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

谢谢。 请问下,插件配置里 API: URL: "http://192.168.1.202:8885/search" # 插件接口地址,默认 post 调用

这个192.168.1.202是什么的IP?我们自己在服务器上部署的时候应该使用啥?

就是你服务器内网的ip

from chatgpt-wechat.

whyiyhw avatar whyiyhw commented on August 16, 2024

plugins的容器应该是在chat_network,而且需要assign特定的ip地址,然后api的url才能够从web的容器里访问到吧? image

image

我把他们移到t同一个docker-compose.yml,然后放在同一个network下了 对么

也可以,我最开始是想着,两个 docker-compose 二合一去处理,在同一网络下,调用也更方便,但是两个语言的东西合在一起挺怪的,后续扩展也不方便,就分离出来了,插件做独立服务

from chatgpt-wechat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.