fix user chat input duplicates in dashboard

This commit is contained in:
wea_ondara
2024-05-29 18:45:44 +02:00
parent 5d77529497
commit ba6367beea

View File

@@ -54,7 +54,6 @@ export default class Chat extends Vue {
this.message = ChatMessageVmV1.fromJson({'role': 'user', 'name': this.user, 'content': this.text});
this.text = '';
await this.apiStore.aiApi.chatText(this.aiInstance.configuration.id, this.message);
this.aiInstance.messages.push(this.message);
} catch (e) {
toast.error('Error while chatting: ' + JSON.stringify(e));
} finally {