Merge branch 'v2' into v2

This commit is contained in:
ycxom 2025-02-07 14:15:02 +08:00 committed by GitHub
commit 799b3a0769
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 42 additions and 26 deletions

View file

@ -150,7 +150,7 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
}
: {
role: 'user',
parts: [{ text }],
parts: text ? [{ text }] : [],
id: idThis,
parentMessageId: opt.parentMessageId || undefined
}
@ -173,6 +173,7 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
data: imageData
}
})
}
}
}