Skip to content

Commit

Permalink
Update info
Browse files Browse the repository at this point in the history
  • Loading branch information
TheExplainthis committed Mar 23, 2023
1 parent 4629e0f commit a261355
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


## Update
- 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)
- 2023/03/18 Added Whisper service, users can now add their own tokens, and added command (refer to the documentation below)
- 2023/03/03 Model change to chat completion: `gpt-3.5-turbo`

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


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

Expand Down
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ def handle_text_message(event):
role, response = get_role_and_content(response)
msg = TextSendMessage(text=response)
memory.append(user_id, role, response)

except ValueError as e:
except ValueError:
msg = TextSendMessage(text='Token 無效,請重新註冊,格式為 /註冊 sk-xxxxx')
except KeyError:
msg = TextSendMessage(text='請先註冊 Token,格式為 /註冊 sk-xxxxx')
Expand Down

0 comments on commit a261355

Please sign in to comment.