mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-04-29 00:27:09 +08:00
README: update the ChatGPT instructions
This commit is contained in:
parent
a48187e98c
commit
0bfce8b3c0
13
README.md
13
README.md
@ -41,6 +41,15 @@ Note, if you are using third party service, you need to `export ANTHROPIC_BASE_U
|
|||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
## Bot -> ChatGPT
|
||||||
|
|
||||||
|
1. visit https://platform.openai.com/account/api-keys get the key
|
||||||
|
2. export OPENAI_API_KEY=${the_key}
|
||||||
|
3. use `chatgpt: ${message}` to ask
|
||||||
|
|
||||||
|
Note, if you are using third party service, you need to `export OPENAI_API_BASE=${the_url}` to change the url.
|
||||||
|
|
||||||
|
|
||||||
## HOW TO Install and Run
|
## HOW TO Install and Run
|
||||||
|
|
||||||
### Manually install
|
### Manually install
|
||||||
@ -58,7 +67,8 @@ Note, if you are using third party service, you need to `export ANTHROPIC_BASE_U
|
|||||||
`docker run -d --name tg_bot_collections -e ANTHROPIC_API_KEY='${ANTHROPIC_API_KEY}' -e TELEGRAM_BOT_TOKEN='${TELEGRAM_BOT_TOKEN}' --network host tg_bot_collections`
|
`docker run -d --name tg_bot_collections -e ANTHROPIC_API_KEY='${ANTHROPIC_API_KEY}' -e TELEGRAM_BOT_TOKEN='${TELEGRAM_BOT_TOKEN}' --network host tg_bot_collections`
|
||||||
#### Run lingyiwanwu
|
#### Run lingyiwanwu
|
||||||
`docker run -d --name tg_bot_collections -e YI_API_KEY='${YI_API_KEY}' -e YI_BASE_URL='${YI_BASE_URL}' -e TELEGRAM_BOT_TOKEN='${TELEGRAM_BOT_TOKEN}' --network host tg_bot_collections`
|
`docker run -d --name tg_bot_collections -e YI_API_KEY='${YI_API_KEY}' -e YI_BASE_URL='${YI_BASE_URL}' -e TELEGRAM_BOT_TOKEN='${TELEGRAM_BOT_TOKEN}' --network host tg_bot_collections`
|
||||||
|
#### Run ChatGPT
|
||||||
|
`docker run -d --name tg_bot_collections -e OPENAI_API_KEY='${CHATGPT_API_KEY}' -e TELEGRAM_BOT_TOKEN='${TELEGRAM_BOT_TOKEN}' --network host tg_bot_collections`
|
||||||
|
|
||||||
### Run as shell
|
### Run as shell
|
||||||
|
|
||||||
@ -86,6 +96,7 @@ Note, this may break your system config -> check this https://github.com/yihong0
|
|||||||
- Gemini use -> https://github.com/google/generative-ai-python
|
- Gemini use -> https://github.com/google/generative-ai-python
|
||||||
- Telegram markdownV2 change code copy from https://github.com/yym68686/md2tgmd/blob/main/src/md2tgmd.py thanks a lot.
|
- Telegram markdownV2 change code copy from https://github.com/yym68686/md2tgmd/blob/main/src/md2tgmd.py thanks a lot.
|
||||||
- Telegram markdownV2 change to telegramify-markdown
|
- Telegram markdownV2 change to telegramify-markdown
|
||||||
|
- ChatGPT use -> https://github.com/openai/openai-python
|
||||||
|
|
||||||
## Appreciation
|
## Appreciation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user