handle the exception for web front page

This commit is contained in:
RockYang
2024-05-06 17:39:58 +08:00
parent f527cc5b98
commit b0c9ffc5a6
7 changed files with 91 additions and 74 deletions

View File

@@ -57,6 +57,7 @@ export default defineComponent({
if (!this.finalTokens) {
httpPost("/api/chat/tokens", {text: this.content, model: this.model}).then(res => {
this.finalTokens = res.data;
}).catch(() => {
})
}
}