wechat-chatgpt

所属分类:GPT/ChatGPT
开发工具:TypeScript
文件大小:297KB
下载次数:0
上传日期:2023-04-16 23:33:41
上 传 者sh-1993
说明:  通过微信在微信上使用ChatGPT
(Use ChatGPT On Wechat via wechaty ,)

文件列表:
.dockerignore (5898, 2023-04-09)
.env.example (224, 2023-04-09)
Dockerfile (626, 2023-04-09)
docker-compose.yml (207, 2023-04-09)
docs (0, 2023-04-09)
docs\images (0, 2023-04-09)
docs\images\railway-deployed.png (62148, 2023-04-09)
docs\images\railway-deploying.png (55084, 2023-04-09)
docs\images\railway-succeed.png (106587, 2023-04-09)
package-lock.json (330062, 2023-04-09)
package.json (929, 2023-04-09)
public (0, 2023-04-09)
src (0, 2023-04-09)
src\bot.ts (9858, 2023-04-09)
src\config.ts (674, 2023-04-09)
src\data.ts (3204, 2023-04-09)
src\interface.ts (413, 2023-04-09)
src\main.ts (1715, 2023-04-09)
src\openai.ts (2160, 2023-04-09)
src\utils.ts (1123, 2023-04-09)
tsconfig.json (10989, 2023-04-09)

蔨 wechat-chatgpt ‘

Version License: ISC Twitter: fuergaosi join discord community of github profile readme generator

> ¨è…é… ChatGPTè‰ > [English](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/README.md) | –– [![Deploy on Railway](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/https://railway.app/button.svg)](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/https://railway.app/template/dMLG70?referralCode=bIYugQ) ## è - ”¨ WeChat ’ ChatGPT èè’¨ - [wechaty](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/https://github.com/wechaty/wechaty) ’ [Official API](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/https://openai.com/blog/introducing-chatgpt-and-whisper-apis) ¨”¨ ChatGPT - ”¤èè - ”[‘¤](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/#-‘¤)è - 騒é…é‰é - Dockerfileéè [docker](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/#éèdocker”¨) èèé¨ - ””¨ [docker compose](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/#éèdocker-compose”¨) èèé¨ - ”¨ [Railway](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/#”¨railwayèèé¨) ’ [Fly.io](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/#éèflyioèèé¨) é¨ - …–è - ” [Dall·E](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/https://labs.openai.com/) - ” [whisper](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/https://openai.com/blog/introducing-chatgpt-and-whisper-apis) - ”è prompt - ”‘‰ ## ”¨ - [¨ Railway é¨](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/#”¨railwayèèé¨)(PaaS, …è, ¨, …¨è) - [¨ Fly.io é¨](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/#éèflyioèèé¨)(PaaS, …è, …¨è) - [”¨ Docker é¨](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/#éèdocker”¨)(è‰, ¨, …¨è) - [”¨ Docker Compose é¨](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/#éèdocker-compose”¨)(è‰, ¨, …¨è) - [”¨ NodeJS é¨](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/#”¨nodejsèè) ## ”¨Railwayèèé¨ > Railway …è PaaS °5…è…è–è…500°—èè—é— 1. [Railway](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/https://railway.app/template/dMLG70?referralCode=bIYugQ) ‰é’è… Railway é¨éé 2. `Deploy Now` ‰é’è… Railway é¨éé 3. ““§°’ `OPENAI_API_KEY`(éèè GitHub è·) 4. `Deploy` ‰é’ 5. `View Logs` ‰é’‰…é¨ ## éèFly.ioèèé¨ > è·””¨¨é… 512 MB …è°… > Fly.io 5…è…è(…èè’3256MB””¨¨è…)°±—é¨ `1*512MB + 3*256MB` 1. ‰è… [flyctl](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/https://fly.io/docs/getting-started/installing-flyctl/) ```shell # macOS brew install flyctl # Windows scoop install flyctl # Linux curl https://fly.io/install.sh | sh ``` 2. …ééè…é ```shell git clone https://github.com/fuergaosi233/wechat-chatgpt.git && cd wechat-chatgpt ``` 3. ””¨ ```shell flyctl launch ? Would you like to copy its configuration to the new app? No ? App Name (leave blank to use an auto-generated name): ? Select region: ? Would you like to setup a Postgresql database now? No ? Would you like to deploy now? No ``` 4. é…é ```shell flyctl secrets set OPENAI_API_KEY="" MODEL="" ``` 5. 騔”¨ ```shell flyctl deploy ``` ## éèDocker”¨ ```sh # ‰–é docker pull holegots/wechat-chatgpt:latest # èè¨ docker run -it --name wechat-chatgpt \ -e OPENAI_API_KEY= \ -e MODEL="gpt-3.5-turbo" \ -e CHAT_PRIVATE_TRIGGER_KEYWORD="" \ -v $(pwd)/data:/app/data/wechat-assistant.memory-card.json \ holegots/wechat-chatgpt:latest # ”¨é docker logs -f wechat-chatgpt ``` > è·– OPENAI API KEYè·è [OpenAI API](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/https://platform.openai.com/account/api-keys) ## éèdocker compose”¨ ```sh # ¨·èé…– cp .env.example .env # ”¨–––葨”é…– vim .env # ¨Linux–WindowsPowerShellè葤 docker compose up -d # ”¨é docker logs -f wechat-chatgpt ``` ## ”¨NodeJSèè > è·è¤‰è…NodeJS‰18.0.0 ```sh # …éé git clone https://github.com/fuergaosi233/wechat-chatgpt.git && cd wechat-chatgpt # ‰è…è– npm install # –è‘é… cp .env.example .env vim .env # ”¨–––葨”é…– # ¨é npm run dev # ¨éééè‰ ``` > è·¨è·é [‘é‰](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/https://wx.qq.com/) ## “ Environment Variables | name | default | example | description | |--------------------------|------------------------|------------------------------------------------|-------------------------------------------------------------| | API | https://api.openai.com | | è‰ChatGPT API ° | | OPENAI_API_KEY | 123456789 | sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | [ API é’](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/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…¨ | | CHAT_TRIGGER_RULE | | | §èè§‘è§ | | DISABLE_GROUP_MESSAGE | true | | ”¨¨¤è锨ChatGPT | | CHAT_PRIVATE_TRIGGER_KEYWORD | | | ¨§è觑ChatGPT…é”è, é褗é…é”è觑 | | BLOCK_WORDS | "VPN" | "WORD1,WORD2,WORD3" | 褱蔅é”è(—¨¤’§è”, é… bot ”¨·é—è°· | | CHATGPT_BLOCK_WORDS | "VPN" | "WORD1,WORD2,WORD3" | ChatGPT¤±è”è, ChatGPT¤…±è”è, ¤ | ## “ ”¨è‰ChatGPT API > https://github.com/fuergaosi233/openai-proxy ```shell # …éé git clone https://github.com/fuergaosi233/openai-proxy # ‰è…è– npm install && npm install -g wrangler && npm run build # 騰 CloudFlare Workers npm run deploy # è‰(é‰) · `Route`` ° `wrangler.toml` routes = [ { pattern = "Your Custom Domain", custom_domain = true }, ] ``` ## ¨ ‘¤ > ¨è¤è“… ```shell /cmd help # ¤ /cmd prompt # èChatGPT Prompt /cmd clear # …é¤WeChat-ChatGPTèè° ``` ## ¨ Contributor ## ¤ é·–“ è Contributions, issues feature requests!
é— [issues page](https://github.com/fuergaosi233/wechat-chatgpt/blob/master/https://github.com/fuergaosi233/wechat-chatgpt/issues). ## è°” è駔è·èéé—

近期下载者

相关文件


收藏者