mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
feat: add picture mode
This commit is contained in:
parent
6f0e62b54d
commit
70044eb6c0
21 changed files with 663 additions and 371 deletions
27
README.md
27
README.md
|
|
@ -14,31 +14,18 @@ pnpm install -w chatgpt undici
|
|||
git clone https://github.com/ikechan8370/yunzai-chatgpt.git ./plugins/chatgpt
|
||||
```
|
||||
3. 修改配置
|
||||
编辑`plugins/chatgpt/index.js`文件主要修改其中的`SESSION_TOKEN`常量,修改为你的openai账号的token。token获取参见下文。
|
||||
编辑`plugins/chatgpt/config/index.js`文件主要修改其中的`SESSION_TOKEN`常量,修改为你的openai账号的token。token获取参见后文。
|
||||
|
||||
## 使用
|
||||
### 默认方式
|
||||
#chatgpt开头即可,例如:#chatgpt 介绍一下米哈游
|
||||

|
||||
(图片仅供参考,chatgpt在某些领域依然是人工智障,但语言起码流畅自信多了)
|
||||
|
||||
比如让他写代码
|
||||

|
||||
|
||||
比如让他写剧本
|
||||
<img width="835" alt="image" src="https://user-images.githubusercontent.com/21212372/206387421-db00728d-1869-40f3-bde4-0dd6a4b67913.png">
|
||||
|
||||
### 群聊使用艾特(@)的方式
|
||||
如果你的机器人插件少不担心冲突问题的话,将 `index.js` 重命名为 `index.js.bak`,将 `index_no#.js` 重命名为 `index.js`,此时将基于艾特模式进行聊天。
|
||||
|
||||
此时只需在群聊中@机器人+聊天内容即可。
|
||||

|
||||
|
||||
同时,此模式下私聊直接打字聊天即可,也无需加#chatgpt前缀。
|
||||

|
||||
|
||||
### 基本使用
|
||||
@机器人 发送聊内容即可
|
||||

|
||||
发挥你的想象力吧!
|
||||
|
||||
### 获取帮助
|
||||
发送#chatgpt帮助
|
||||
|
||||
## 关于openai token获取
|
||||
1. 注册openai账号
|
||||
进入https://chat.openai.com/ ,选择signup注册。目前openai不对包括俄罗斯、乌克兰、伊朗、中国等国家和地区提供服务,所以自行寻找办法使用其他国家和地区的ip登录。此外,注册可能需要验证所在国家和地区的手机号码,如果没有国外手机号可以试试解码网站,收费的推荐https://sms-activate.org/。
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue