feat: sketch自动滚动到底部
This commit is contained in:
@@ -226,9 +226,9 @@
|
||||
...params,
|
||||
// configParams: JSON.stringify(params.configParams)
|
||||
configParams: JSON.stringify({
|
||||
type: params.configParams.type||'',
|
||||
region: params.configParams.region||'',
|
||||
style: params.configParams.style||'',
|
||||
type: params.configParams.type || '',
|
||||
region: params.configParams.region || '',
|
||||
style: params.configParams.style || '',
|
||||
temperature: params.configParams.temperature
|
||||
})
|
||||
})
|
||||
@@ -236,7 +236,8 @@
|
||||
|
||||
const response = await fetch(`${BASEURL}${chatUrl}?${urlParams.toString()}`, {
|
||||
method: 'GET',
|
||||
signal: abortController.signal
|
||||
signal: abortController.signal,
|
||||
keepalive: true
|
||||
})
|
||||
|
||||
// 检查响应内容类型,判断是否为流式响应
|
||||
@@ -680,7 +681,7 @@
|
||||
|
||||
Object.entries(newData).forEach(([key, value]) => {
|
||||
if (!existingKeys.has(key)) {
|
||||
targetArr.unshift({ [key]: value })
|
||||
targetArr.push({ [key]: value })
|
||||
existingKeys.add(key)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user