mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: use proper Content[] type instead of any[] for type safety
Address PR review feedback by using the correct Content type from the Gemini SDK for the contents array in generateImage method
This commit is contained in:
parent
68a7c8390b
commit
70c769535c
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue