Merge pull request #16 from Chanzhaoyu/dev

fix: 上下文按钮失效
This commit is contained in:
Redon 2023-02-13 19:40:46 +08:00 committed by GitHub
commit 3ac6746930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# ChatGPT Web Bot
重要提示:目前 `OpenAI` 开放的模型最高只有 `GPT-3`,和现在网页所使用的 `GPT-3.5``GPT-4` 是有很大差距的,需要等官方开放最新的模型接口。
使用 express 和 vue3 搭建的 ChartGPT 演示网页
![cover](./docs/cover-2.png)

View File

@ -31,11 +31,12 @@ function initChat() {
async function handleClear() {
try {
const { message } = await clearConversations()
ms.success(message ?? 'Success')
await clearConversations()
}
catch (error) {
ms.error('Clear failed, please try again later.')
}
finally {
list.value = []
setTimeout(initChat, 100)
}