chat with gemini now will use any first images
This commit is contained in:
@@ -61,10 +61,10 @@ export class GeminiChat extends ChatCommand {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
if (messageParts[0].images?.length) {
|
// TODO: 12/02/2026, Danil Nikolaev: support for multiple images
|
||||||
const images = messageParts[0].images;
|
if (messageParts.some(p => p.images?.length)) {
|
||||||
|
const firstImages = messageParts.find(p => p.images?.length)?.images ?? [];
|
||||||
images.forEach(image => {
|
firstImages.forEach(image => {
|
||||||
input.push({
|
input.push({
|
||||||
type: "image",
|
type: "image",
|
||||||
data: image,
|
data: image,
|
||||||
|
|||||||
Reference in New Issue
Block a user