mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
Update message.js
This commit is contained in:
parent
dc1ab30b6a
commit
8a924f91df
1 changed files with 3 additions and 3 deletions
|
|
@ -203,10 +203,10 @@ export async function toYunzai (e, contents) {
|
||||||
const imageContent = (/** @type {import('chaite').ImageContent} **/ content).image
|
const imageContent = (/** @type {import('chaite').ImageContent} **/ content).image
|
||||||
if (imageContent.startsWith('http')) {
|
if (imageContent.startsWith('http')) {
|
||||||
msgs.push(segment.image(imageContent))
|
msgs.push(segment.image(imageContent))
|
||||||
} else if (!imageContent.startsWith('base64')) {
|
} else if (!mageContent.startsWith('base64')) {
|
||||||
msgs.push(`base64://${imageContent}`)
|
|
||||||
} else {
|
|
||||||
msgs.push(segment.image(imageContent))
|
msgs.push(segment.image(imageContent))
|
||||||
|
} else {
|
||||||
|
msgs.push(segment.image(`base64://${imageContent}`))
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue