Skip to content
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

add continuous dialogue feat #743

Merged
merged 2 commits into from
Mar 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
- [x] Deploy using [docker compose](#use-with-docker-compose---recommended-)
- [x] Add Railway deploy
- [x] Add Fly.io deploy
- [x] Supports custom ChatGPT API
- [x] ~~Supports custom ChatGPT API~~
- [x] Set prompt
- [x] Continuous conversation
- [x] Support command setting
- [ ] Support proxy

## 🚀 Usage
Expand Down Expand Up @@ -81,7 +84,6 @@
flyctl deploy
```


## Use with docker

```sh
Expand Down Expand Up @@ -135,7 +137,7 @@ npm npm dev

| name | default | example | description |
|------------------------------|------------------------|------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| API | https://api.openai.com | | API endpoint of ChatGPT |
| ~~API~~ | https://api.openai.com | | ~~API endpoint of ChatGPT~~ |
| OPENAI_API_KEY | 123456789 | sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | [create new secret key](https://platform.openai.com/account/api-keys) |
| MODEL | gpt-3.5-turbo | | ID of the model to use. Currently, only gpt-3.5-turbo and gpt-3.5-turbo-0301 are supported. |
| TEMPERATURE | 0.6 | | What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. |
Expand Down Expand Up @@ -163,6 +165,14 @@ routes = [
]
```

## ⌨️ Commands
> Enter in the WeChat chat box
```shell
/cmd help # Show help
/cmd prompt <PROMPT> # Set prompt
/cmd clear # Clear all sessions since last boot
```

## ✨ Contributor

<a href="https://github.com/fuergaosi233/wechat-chatgpt/graphs/contributors">
Expand Down
16 changes: 13 additions & 3 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
- [x] 使用[docker compose](#通过docker-compose使用-推荐)进行部署
- [x] 通过 Railway 进行部署
- [x] 通过 Fly.io 进行部署
- [x] 支持自定义ChatGPT API
- [x] ~~支持自定义ChatGPT API~~
- [x] 支持设置prompt
- [x] 支持连续对话
- [x] 支持命令设置
- [ ] 支持代理

## 🚀 使用
Expand Down Expand Up @@ -139,7 +142,7 @@ npm run dev

| name | default | example | description |
|------------------------------|------------------------|------------------------------------------------|-------------------------------------------------------------|
| API | https://api.openai.com | ChatGPT API 地址 |
| ~~API~~ | https://api.openai.com | | ~~ChatGPT API 地址~~ |
| OPENAI_API_KEY | 123456789 | sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | [创建你的 API 密钥](https://platform.openai.com/account/api-keys) |
| MODEL | gpt-3.5-turbo | | 要使用的模型ID, 目前仅支持`gpt-3.5-turbo` 和 `gpt-3.5-turbo-0301` |
| TEMPERATURE | 0.6 | | 在0和2之间。较高的数值如0.8会使 ChatGPT 输出更加随机,而较低的数值如0.2会使其更加稳定。 |
Expand All @@ -149,7 +152,6 @@ npm run dev
| BLOCK_WORDS | | "WORD1,WORD2,WORD3" | 聊天屏蔽关键词(同时在群组和私聊中生效, 避免 bot 用户恶意提问导致封号 |
| CHATGPT_BLOCK_WORDS | | "WORD1,WORD2,WORD3" | ChatGPT回复屏蔽词, 如果ChatGPT的回复中包含了屏蔽词, 则不回复 |


## 📝 使用自定义ChatGPT API
> https://github.com/fuergaosi233/openai-proxy
```shell
Expand All @@ -166,6 +168,14 @@ routes = [
]
```

## ⌨️ 命令
> 在微信聊天框中输入
```shell
/cmd help # 显示帮助信息
/cmd prompt <PROMPT> # 设置ChatGPT Prompt
/cmd clear # 清除WeChat-ChatGPT保存的会话记录
```

## ✨ Contributor

<a href="https://github.com/fuergaosi233/wechat-chatgpt/graphs/contributors">
Expand Down
Loading