GenkitG
Genkitโ€ข7mo ago
naughty-peach

In v1.12.0, there's typed model support

In v1.12.0, there's typed model support for up to gemini25FlashPreview0417 , curious if its possible to use string format to specify a more recent model such as 'gemini-2.5-flash-preview-05-20',

my init:
const ai = genkit({
    plugins: [
        vertexAI({
            location: "us-central1",
            projectId: process.env.GCLOUD_PROJECT
        })
    ]
});


vertexai lib index.ts:
export { n as GeminiConfig, o as GeminiVersionString, a as SafetySettingsSchema, g as gemini, b as gemini10Pro, c as gemini15Flash, d as gemini15Pro, e as gemini20Flash, f as gemini20Flash001, h as gemini20FlashLite, i as gemini20FlashLitePreview0205, j as gemini20ProExp0205, k as gemini25FlashPreview0417, l as gemini25ProExp0325, m as gemini25ProPreview0325 } from './types-C9MotdXn.js';

ERROR 2025-06-16T20:34:14.092678Z Unhandled error Error: NOT_FOUND: Model 'gemini-2.5-flash-preview-05-20' not found at /workspace/lib/worldChatAgent.js:693:15 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async /workspace/node_modules/firebase-functions/lib/common/providers/https.js:544:26
ERROR 2025-06-16T20:34:14.091602Z Error in worldChat: GenkitError: NOT_FOUND: Model 'gemini-2.5-flash-preview-05-20' not found 
Was this page helpful?