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