imageData not to content
This commit is contained in:
parent
21bf7add36
commit
9f2434f182
@ -66,9 +66,9 @@ const IMAGE_MODEL_ADAPTERS: Record<string, ModelAdapter> = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果有图片数据,返回图片数据,否则返回文本内容
|
// 如果有图片数据,不返回到 content 中,只存储到 imageData
|
||||||
return {
|
return {
|
||||||
content: imageData || content || 'No image data found in response',
|
content: imageData ? '' : (content || 'No image data found in response'),
|
||||||
outputType: 'image',
|
outputType: 'image',
|
||||||
imageData: imageData
|
imageData: imageData
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user