PHPackages                             dreammiu/zm-chat-gpt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dreammiu/zm-chat-gpt

ActiveLibrary

dreammiu/zm-chat-gpt
====================

这是一个基于炸毛v3.1.1开发的ChatGPT插件，他能通过炸毛方便在支持OneBotV12平台上使用

1.2(2y ago)114MITPHP

Since Mar 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/DreamMiu/zm-chat-gpt)[ Packagist](https://packagist.org/packages/dreammiu/zm-chat-gpt)[ Docs](https://github.com/DreamMiu/zm-chat-gpt)[ RSS](/packages/dreammiu-zm-chat-gpt/feed)WikiDiscussions main Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

ZMChatGPT
=========

[](#zmchatgpt)

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

### 框架适配

[](#框架适配)

##### 基于框架: 3.1.9 开发

[](#基于框架-319-开发)

安装
--

[](#安装)

```
./zhamao plugin:install https://github.com/dreammiu/zm-chat-gpt.git
```

使用
--

[](#使用)

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

```
{
  "HasteBinKey": "366f56d000000000000000000000000000000000e12539000000000003",
  "ChatGPTKey": "sb-0000000000000000000000"
}

```

### HasteBinKey申请地址:

[](#hastebinkey申请地址)

### ChatGPTKey申请地址:

[](#chatgptkey申请地址)

注意！新版本默认使用openai-sb的接口，申请key相关可以在他们官网寻找默认使用:

注意！新版本默认使用openai-sb的接口，申请key相关可以在他们官网寻找默认使用:

注意！新版本默认使用openai-sb的接口，申请key相关可以在他们官网寻找默认使用:

### 修改默认ChatGP

[](#修改默认chatgp)

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

以下使用http方式代理使用

```
curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_BASIC); //代理认证模式
curl_setopt($ch, CURLOPT_PROXY, "127.0.0.1"); //代理服务器地址
curl_setopt($ch, CURLOPT_PROXYPORT, 1081); //代理服务器端口
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); //使用http代理模式

```

命令
--

[](#命令)

触发指令介绍\#使用#+内容 向机器人提问\#清除个人设置清除个人设置（包括向GPT提问的上下文，给机器人的名字）\##因为GPT接口限制插件上下文total\_tokens在3700左右会自动重置上下文信息并且保留第一次设置机器人名称，如需重置个人设定 使用 “#清除个人设置” 命令清除 比如例如下方图片 [![2{QIB0DMKIR0B@7OP 2`A}P](https://user-images.githubusercontent.com/30835281/224357757-c7db810e-6959-4ae9-8987-eba6af201bd9.jpg)](https://user-images.githubusercontent.com/30835281/224357757-c7db810e-6959-4ae9-8987-eba6af201bd9.jpg)

###  Health Score

22

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~40 days

Total

2

Last Release

1060d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c79d5bb8ad678f7e62f3c83ee9c1f2240e7c5741b47cb676bcb0f0f8b2393ed?d=identicon)[DreamMiu](/maintainers/DreamMiu)

---

Top Contributors

[![DreamMiu](https://avatars.githubusercontent.com/u/30835281?v=4)](https://github.com/DreamMiu "DreamMiu (13 commits)")

### Embed Badge

![Health badge](/badges/dreammiu-zm-chat-gpt/health.svg)

```
[![Health](https://phpackages.com/badges/dreammiu-zm-chat-gpt/health.svg)](https://phpackages.com/packages/dreammiu-zm-chat-gpt)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
