refactor: Use default centralized Flash & Pro models everywhere (#994)

This commit is contained in:
N. Taylor Mullen
2025-06-13 01:25:42 -07:00
committed by GitHub
parent f8a31f29aa
commit 7bcc60e996
9 changed files with 28 additions and 11 deletions

View File

@@ -31,6 +31,7 @@ import {
createContentGenerator,
} from './contentGenerator.js';
import { ProxyAgent, setGlobalDispatcher } from 'undici';
import { DEFAULT_GEMINI_FLASH_MODEL } from '../config/models.js';
export class GeminiClient {
private chat: Promise<GeminiChat>;
@@ -215,7 +216,7 @@ export class GeminiClient {
contents: Content[],
schema: SchemaUnion,
abortSignal: AbortSignal,
model: string = 'gemini-2.0-flash',
model: string = DEFAULT_GEMINI_FLASH_MODEL,
config: GenerateContentConfig = {},
): Promise<Record<string, unknown>> {
const cg = await this.contentGenerator;