feat: 对网络请求的调整优化处理
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
|
||||
import OneFeelMK001 from '../module/OneFeelMK001.vue';
|
||||
import request from '../../request/base/request';
|
||||
import { agentChatStream } from '../../request/api/AgentChatStream';
|
||||
|
||||
// 导航栏相关
|
||||
const statusBarHeight = ref(20);
|
||||
@@ -225,7 +226,7 @@
|
||||
}
|
||||
|
||||
// 2. 流式接收内容
|
||||
request.getAIChatStream(args, (chunk) => {
|
||||
agentChatStream(args, (chunk) => {
|
||||
console.log('分段内容:', chunk)
|
||||
if (chunk && chunk.content) {
|
||||
// 收到内容,停止动画
|
||||
|
||||
Reference in New Issue
Block a user