fix user chat input duplicates in dashboard
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user