默认为流式输出

This commit is contained in:
zhonghua.li
2026-04-04 09:43:01 +08:00
parent 99a71cdc69
commit 99c087e8f4
3 changed files with 8 additions and 7 deletions

View File

@@ -237,7 +237,7 @@ export default {
safeBottom: systemInfo.safeAreaInsets.bottom || 0,
message: '',
sending: false,
useStreamOutput: false,
useStreamOutput: true,
chatMessages: [],
sessionParentId: '',
streamRequestTask: null,
@@ -663,7 +663,8 @@ export default {
},
sendByNormal(payload) {
const url = getApiUrl('/api/aiQaItem/askAI');
post(url, payload)
// 非流式回答耗时更长,放宽超时避免频繁超时失败
post(url, payload, { timeout: 120000 })
.then((res) => {
uni.hideLoading();
const body = res && res.data ? res.data : null;