Fix auth and experience issue (#87)
Co-authored-by: Germey <germey@acedata.cloud>
This commit is contained in:
1 parent
c7c755fcd6
commit
558eadb63c
24 files changed
+235
-427
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<layout>
|
||||
<template #chat>
|
||||
<model-selector2 class="selector" />
|
||||
<model-selector class="selector" />
|
||||
<application-status
|
||||
:initializing="initializing"
|
||||
:application="application"
|
||||
@@ -43,7 +43,7 @@ import Message from '@/components/chat/Message.vue';
|
||||
import { ROLE_ASSISTANT, ROLE_USER } from '@/constants';
|
||||
import { IChatModel, IChatMessageState, IChatConversationResponse, IChatConversation, IChatMessage } from '@/models';
|
||||
import InputBox from '@/components/chat/InputBox.vue';
|
||||
import ModelSelector2 from '@/components/chat/ModelSelector2.vue';
|
||||
import ModelSelector from '@/components/chat/ModelSelector.vue';
|
||||
import { ERROR_CODE_CANCELED, ERROR_CODE_NOT_APPLIED, ERROR_CODE_UNKNOWN } from '@/constants/errorCode';
|
||||
import { ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_CONVERSATION_NEW } from '@/router';
|
||||
import { Status } from '@/models';
|
||||
@@ -65,7 +65,7 @@ export default defineComponent({
|
||||
components: {
|
||||
InputBox,
|
||||
Introduction,
|
||||
ModelSelector2,
|
||||
ModelSelector,
|
||||
Message,
|
||||
ApplicationStatus,
|
||||
Layout
|
||||
@@ -177,6 +177,7 @@ export default defineComponent({
|
||||
});
|
||||
}
|
||||
this.messages.push({
|
||||
// @ts-ignore
|
||||
content: content,
|
||||
role: ROLE_USER
|
||||
});
|
||||
@@ -284,6 +285,7 @@ export default defineComponent({
|
||||
if (isJSONString(data)) {
|
||||
data = JSON.parse(data);
|
||||
}
|
||||
console.debug('error', data);
|
||||
if (this.messages && this.messages.length > 0) {
|
||||
this.messages[this.messages.length - 1].error = data.error;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user