fix: gemini empty text

This commit is contained in:
ikechan8370 2025-02-05 15:51:37 +08:00
parent d656313811
commit f9a6fafb9e

View file

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