diff --git a/src/api/providers/gemini.ts b/src/api/providers/gemini.ts index a867d212a3..d92a7f4fd6 100644 --- a/src/api/providers/gemini.ts +++ b/src/api/providers/gemini.ts @@ -5,6 +5,7 @@ import { type GenerateContentParameters, type GenerateContentConfig, type GroundingMetadata, + type Content, } from "@google/genai" import type { JWTInput } from "google-auth-library" @@ -368,7 +369,7 @@ export class GeminiHandler extends BaseProvider implements SingleCompletionHandl } // Prepare the content for generation - const contents: any[] = [] + const contents: Content[] = [] if (inputImage) { // For image editing mode, include both text and image