This commit is contained in:
AceDataCloud committed 2023-12-11 01:39:36 +08:00
1 parent cea31c5011
commit 297dd3ef2f
30 files changed
+55 -1386

No files matched your search

+4 -3
View File
@@ -20,10 +20,11 @@
</template>
<script lang="ts">
import { ROLE_ASSISTANT, ROLE_USER } from '@/operators/message/models';
import { defineComponent } from 'vue';
import Message from '@/components/chat/Message.vue';
import {
ROLE_ASSISTANT,
ROLE_USER,
IChatModel,
IChatMessage,
CHAT_MODEL_CHATGPT,
@@ -34,11 +35,11 @@ import {
CHAT_MODEL_CHATGPT_16K,
CHAT_MODEL_CHATGPT_BROWSING,
CHAT_MODEL_CHATGPT4,
CHAT_MODEL_CHATGPT4_BROWSING
CHAT_MODEL_CHATGPT4_BROWSING,
chatOperator
} from '@/operators';
import InputBox from '@/components/chat/InputBox.vue';
import ModelSelector from '@/components/chat/ModelSelector.vue';
import { chatOperator } from '@/operators';
import { ERROR_CODE_CANCELED, ERROR_CODE_UNKNOWN } from '@/constants/errorCode';
import axios from 'axios';
import ApiStatus from '@/components/common/ApiStatus.vue';
+4 -4
View File
@@ -3,9 +3,9 @@
<sidebar class="left" :applications="applications" />
<div class="main">
<div class="card">
<h2 class="title">Chat</h2>
<p class="description">Click to start a new chat</p>
<el-button type="primary" @click="onStart">New</el-button>
<h2 class="title">{{ $t('chat.title.chat') }}</h2>
<p class="description">{{ $t('chat.message.startNewChat') }}</p>
<el-button type="primary" @click="onStart">{{ $t('common.button.new') }}</el-button>
</div>
</div>
</div>
@@ -13,7 +13,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { ElMain, ElAside, ElButton, ElDrawer } from 'element-plus';
import { ElButton } from 'element-plus';
import Sidebar from '@/components/chat/Sidebar.vue';
import { ROUTE_CHAT_CONVERSATION_NEW } from '@/router/constants';
import { IApplication } from '@/operators/application/models';