可信代码库-AI大模型bug修复及相关功能修改
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
<div class="flex-1 flex items-center justify-end" v-if="!isHome">
|
<div class="flex-1 flex items-center justify-end" v-if="!isHome">
|
||||||
<Search class="g-toolbar-left-search" v-if="!isMobile" :key="$route.fullPath" />
|
<Search class="g-toolbar-left-search" v-if="!isMobile" :key="$route.fullPath" />
|
||||||
</div>
|
</div>
|
||||||
|
<!--AI-->
|
||||||
<a v-if="!isHome" @click="gotoAI">
|
<a v-if="!isHome" @click="gotoAI">
|
||||||
<img style="width: 98px;height: 32px;cursor: pointer" src="@/assets/imgs/jyh/ai/ai_zh.png" />
|
<img style="width: 98px;height: 32px;cursor: pointer" src="@/assets/imgs/jyh/ai/ai_zh.png" />
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -351,6 +351,7 @@ const getAIAnswer = async (content) => {
|
|||||||
// 处理思考过程
|
// 处理思考过程
|
||||||
const thinkProcess = processThinkStates(states);
|
const thinkProcess = processThinkStates(states);
|
||||||
messages.value[messages.value.length - 1].thinkProcess = thinkProcess;
|
messages.value[messages.value.length - 1].thinkProcess = thinkProcess;
|
||||||
|
messages.value[messages.value.length - 1].thinkExpanded = true;
|
||||||
|
|
||||||
if(type==='text') {
|
if(type==='text') {
|
||||||
messages.value[messages.value.length - 1].content = text;
|
messages.value[messages.value.length - 1].content = text;
|
||||||
|
|||||||
Reference in New Issue
Block a user