bugfix: configparams必须有参数字段
This commit is contained in:
@@ -131,9 +131,9 @@
|
|||||||
if (initialData) {
|
if (initialData) {
|
||||||
// 等待页面渲染完成后自动发送初始消息
|
// 等待页面渲染完成后自动发送初始消息
|
||||||
params.configParams = {
|
params.configParams = {
|
||||||
type: initialData.type,
|
type: initialData.type || '',
|
||||||
region: initialData.area,
|
region: initialData.area || '',
|
||||||
style: initialData.style,
|
style: initialData.style || '',
|
||||||
temperature: 0.7
|
temperature: 0.7
|
||||||
}
|
}
|
||||||
params.needSuggestion = initialData.needSuggestion || false
|
params.needSuggestion = initialData.needSuggestion || false
|
||||||
@@ -227,9 +227,7 @@
|
|||||||
configParams: JSON.stringify(params.configParams)
|
configParams: JSON.stringify(params.configParams)
|
||||||
})
|
})
|
||||||
const BASEURL = import.meta.env.VITE_APP_URL
|
const BASEURL = import.meta.env.VITE_APP_URL
|
||||||
// console.log('params', params)
|
|
||||||
|
|
||||||
// debugger
|
|
||||||
const response = await fetch(`${BASEURL}${chatUrl}?${urlParams.toString()}`, {
|
const response = await fetch(`${BASEURL}${chatUrl}?${urlParams.toString()}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
signal: abortController.signal
|
signal: abortController.signal
|
||||||
@@ -638,9 +636,9 @@
|
|||||||
params.useReport = false
|
params.useReport = false
|
||||||
|
|
||||||
if (project) {
|
if (project) {
|
||||||
params.configParams.type = project.type
|
params.configParams.type = project.type || ''
|
||||||
params.configParams.region = project.area
|
params.configParams.region = project.area || ''
|
||||||
params.configParams.style = project.style
|
params.configParams.style = project.style || ''
|
||||||
params.configParams.temperature = project.temperature
|
params.configParams.temperature = project.temperature
|
||||||
params.projectID = project.id
|
params.projectID = project.id
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user