Download the PHP package dreammiu/zm-chat-gpt without Composer

On this page you can find all versions of the php package dreammiu/zm-chat-gpt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package zm-chat-gpt

ZMChatGPT

这是一个 zhamao-robot / zhamao-framework 的插件,他的作用是请求gpt3.5的api

框架适配

基于框架: 3.1.9 开发

安装

使用

1.安装完成后启动一次炸毛生成配置文(在zhamao根目录../zhamao-v3/config/ZMChatGPT.json)

HasteBinKey申请地址:

https://www.toptal.com/developers/hastebin/documentation

ChatGPTKey申请地址:

注意!新版本默认使用openai-sb的接口,申请key相关可以在他们官网寻找默认使用:https://openai-sb.com/

注意!新版本默认使用openai-sb的接口,申请key相关可以在他们官网寻找默认使用:https://openai-sb.com/

注意!新版本默认使用openai-sb的接口,申请key相关可以在他们官网寻找默认使用:https://openai-sb.com/

修改默认ChatGP

1.打开在../zhamao-v3/vendor/dreammiu/zm-chat-gpt/src/ZMChatGPT.php 2.寻找“-sb”然后删除(在文件中约第71行) 3.可有可无,如果返回慢,需要配置代理 4.在curl修改代码中插入(约72行中插修改代码然后配置)

以下使用http方式代理使用

命令

触发指令 介绍
# 使用#+内容 向机器人提问
#清除个人设置 清除个人设置(包括向GPT提问的上下文,给机器人的名字)

因为GPT接口限制插件上下文total_tokens在3700左右会自动重置上下文信息并且保留第一次设置机器人名称,如需重置个人设定 使用

“#清除个人设置” 命令清除 比如例如下方图片 2{QIB0DMKIR0B@7OP 2`A}P


All versions of zm-chat-gpt with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dreammiu/zm-chat-gpt contains the following files

Loading the files please wait ....