Skip to content

Commit 88d373b

Browse files
Update Prompt
1 parent 94201ac commit 88d373b

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

README.en.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
## Update
9-
- 2023/03/18 Added Whisper service, and users can now add their own tokens.
9+
- 2023/03/18 Added Whisper service, users can now add their own tokens, and added command (refer to the documentation below)
1010
- 2023/03/03 Model change to chat completion: `gpt-3.5-turbo`
1111

1212

@@ -80,9 +80,16 @@ Import the ChatGPT bot to Line and start interacting with it by simply typing te
8080
## Commands
8181
To start a conversation with ChatGPT, simply type your message in the text input box. Other available commands include:
8282

83+
8384
| Command | Description |
8485
| ------- | ----------- |
85-
| `/imagine` | Type `/imagine` followed by text in the input box to call the DALL·E 2 model and generate an image. |
86+
| `/註冊` | Enter `/註冊` + OpenAI API Token in the input box to register your token|
87+
| `/系統訊息` | Enter `/系統訊息` + the role you want ChatGPT to play in the input box|
88+
| `/清除` | Enter `/清除` in the input box to clear the chat history|
89+
| `/圖像` | Enter `/圖像` + command in the input box to call the DALL·E 2 model and generate an image|
90+
| Voice input | Use voice input, the system will automatically translate the voice into text, and ChatGPT will respond in text|
91+
| Text input | Directly input text to enter the normal ChatGPT conversation mode|
92+
8693

8794
## Support Us
8895
Like this free project? Please consider [supporting us](https://www.buymeacoffee.com/explainthis) to keep it running.

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
## 更新
9-
- 2023/03/18 新增 Whipser 服務、用戶可以新增自己的 Token
9+
- 2023/03/18 新增 Whipser 服務、用戶可以新增自己的 Token、新增指令(參考文件下方)
1010
- 2023/03/03 模型換成 chat completion: `gpt-3.5-turbo`
1111

1212

@@ -82,7 +82,13 @@
8282

8383
| 指令 | 說明 |
8484
| --- | ----- |
85-
| `/imagine` | 在輸入框輸入 `/imagine` + 文字,就會調用 DALL·E 2 模型,即可生成圖像。|
85+
| `/註冊` | 在輸入框輸入 `/註冊 ` + OpenAI API Token,就可以註冊 Token|
86+
| `/系統訊息` | 在輸入框輸入 `/系統訊息 ` + 可以設定希望 ChatGPT 扮演什麼角色|
87+
| `/清除` | 在輸入框輸入 `/清除 `,就可以清除歷史訊息|
88+
| `/圖像` | 在輸入框輸入 `/圖像` + 指令,就會調用 DALL·E 2 模型,即可生成圖像。|
89+
| 語音輸入 | 利用語音輸入,系統會自動將語音翻譯成文字,並且 ChatGPT 以文字回應|
90+
| 其他文字輸入 | 直接輸入文字,則會進入一般的 ChatGPT 對話模式|
91+
8692

8793
## 支持我們
8894
如果你喜歡這個專案,願意[支持我們](https://www.buymeacoffee.com/explainthis),可以請我們喝一杯咖啡,這會成為我們繼續前進的動力!

main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from collections import defaultdict
2-
31
from dotenv import load_dotenv
42
from flask import Flask, request, abort
53
from linebot import (

0 commit comments

Comments
 (0)