fix: allow user to use responseSchema as well. (#6336)

This commit is contained in:
Wanlin Du 2025-08-15 13:59:01 -07:00 committed by GitHub
parent b55f19fdfc
commit de6c759c28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ interface VertexGenerationConfig {
seed?: number; seed?: number;
responseMimeType?: string; responseMimeType?: string;
responseJsonSchema?: unknown; responseJsonSchema?: unknown;
responseSchema?: unknown;
routingConfig?: GenerationConfigRoutingConfig; routingConfig?: GenerationConfigRoutingConfig;
modelSelectionConfig?: ModelSelectionConfig; modelSelectionConfig?: ModelSelectionConfig;
responseModalities?: string[]; responseModalities?: string[];
@ -229,6 +230,7 @@ function toVertexGenerationConfig(
frequencyPenalty: config.frequencyPenalty, frequencyPenalty: config.frequencyPenalty,
seed: config.seed, seed: config.seed,
responseMimeType: config.responseMimeType, responseMimeType: config.responseMimeType,
responseSchema: config.responseSchema,
responseJsonSchema: config.responseJsonSchema, responseJsonSchema: config.responseJsonSchema,
routingConfig: config.routingConfig, routingConfig: config.routingConfig,
modelSelectionConfig: config.modelSelectionConfig, modelSelectionConfig: config.modelSelectionConfig,