Skip to content

Commit a261355

Browse files
Update info
1 parent 4629e0f commit a261355

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77

88
## Update
9+
- 2023/03/23 Update summary of Youtube videos and news articles (supports: United Daily News, Yahoo News, Central News Agency, Storm Media, TVBS, Liberty Times, ETtoday, China Times, Line News, TTV News)
910
- 2023/03/18 Added Whisper service, users can now add their own tokens, and added command (refer to the documentation below)
1011
- 2023/03/03 Model change to chat completion: `gpt-3.5-turbo`
1112

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77

88
## 更新
9+
- 2023/03/23 更新總結 Youtube 影片內容、新聞文章(支援:聯合報、Yahoo 新聞、中央通訊社、風傳媒、TVBS、自由時報、ETtoday、中時新聞網、Line 新聞、台視新聞網)
910
- 2023/03/18 新增 Whipser 服務、用戶可以新增自己的 Token、新增指令(參考文件下方)
1011
- 2023/03/03 模型換成 chat completion: `gpt-3.5-turbo`
1112

main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ def handle_text_message(event):
122122
role, response = get_role_and_content(response)
123123
msg = TextSendMessage(text=response)
124124
memory.append(user_id, role, response)
125-
126-
except ValueError as e:
125+
except ValueError:
127126
msg = TextSendMessage(text='Token 無效,請重新註冊,格式為 /註冊 sk-xxxxx')
128127
except KeyError:
129128
msg = TextSendMessage(text='請先註冊 Token,格式為 /註冊 sk-xxxxx')

0 commit comments

Comments
 (0)