File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
8
8
## 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)
10
10
- 2023/03/03 Model change to chat completion: ` gpt-3.5-turbo `
11
11
12
12
@@ -80,9 +80,16 @@ Import the ChatGPT bot to Line and start interacting with it by simply typing te
80
80
## Commands
81
81
To start a conversation with ChatGPT, simply type your message in the text input box. Other available commands include:
82
82
83
+
83
84
| Command | Description |
84
85
| ------- | ----------- |
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
+
86
93
87
94
## Support Us
88
95
Like this free project? Please consider [ supporting us] ( https://www.buymeacoffee.com/explainthis ) to keep it running.
Original file line number Diff line number Diff line change 6
6
7
7
8
8
## 更新
9
- - 2023/03/18 新增 Whipser 服務、用戶可以新增自己的 Token
9
+ - 2023/03/18 新增 Whipser 服務、用戶可以新增自己的 Token、新增指令(參考文件下方)
10
10
- 2023/03/03 模型換成 chat completion: ` gpt-3.5-turbo `
11
11
12
12
82
82
83
83
| 指令 | 說明 |
84
84
| --- | ----- |
85
- | ` /imagine ` | 在輸入框輸入 ` /imagine ` + 文字,就會調用 DALL·E 2 模型,即可生成圖像。|
85
+ | ` /註冊 ` | 在輸入框輸入 ` /註冊 ` + OpenAI API Token,就可以註冊 Token|
86
+ | ` /系統訊息 ` | 在輸入框輸入 ` /系統訊息 ` + 可以設定希望 ChatGPT 扮演什麼角色|
87
+ | ` /清除 ` | 在輸入框輸入 ` /清除 ` ,就可以清除歷史訊息|
88
+ | ` /圖像 ` | 在輸入框輸入 ` /圖像 ` + 指令,就會調用 DALL·E 2 模型,即可生成圖像。|
89
+ | 語音輸入 | 利用語音輸入,系統會自動將語音翻譯成文字,並且 ChatGPT 以文字回應|
90
+ | 其他文字輸入 | 直接輸入文字,則會進入一般的 ChatGPT 對話模式|
91
+
86
92
87
93
## 支持我們
88
94
如果你喜歡這個專案,願意[ 支持我們] ( https://www.buymeacoffee.com/explainthis ) ,可以請我們喝一杯咖啡,這會成為我們繼續前進的動力!
Original file line number Diff line number Diff line change 1
- from collections import defaultdict
2
-
3
1
from dotenv import load_dotenv
4
2
from flask import Flask , request , abort
5
3
from linebot import (
You can’t perform that action at this time.
0 commit comments