diff options
| author | Wanlin Du <[email protected]> | 2025-08-15 13:59:01 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-15 20:59:01 +0000 |
| commit | de6c759c28169d786213aa50186aa574b45c2795 (patch) | |
| tree | 9ce96abe47ffb846648cc3595606d3a0ff0573e0 /packages/core/src | |
| parent | b55f19fdfc36d272f6a96f08621d2e3ec8091e4e (diff) | |
fix: allow user to use responseSchema as well. (#6336)
Diffstat (limited to 'packages/core/src')
| -rw-r--r-- | packages/core/src/code_assist/converter.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/core/src/code_assist/converter.ts b/packages/core/src/code_assist/converter.ts index 9c8a2434..7ca17386 100644 --- a/packages/core/src/code_assist/converter.ts +++ b/packages/core/src/code_assist/converter.ts @@ -61,6 +61,7 @@ interface VertexGenerationConfig { seed?: number; responseMimeType?: string; responseJsonSchema?: unknown; + responseSchema?: unknown; routingConfig?: GenerationConfigRoutingConfig; modelSelectionConfig?: ModelSelectionConfig; responseModalities?: string[]; @@ -229,6 +230,7 @@ function toVertexGenerationConfig( frequencyPenalty: config.frequencyPenalty, seed: config.seed, responseMimeType: config.responseMimeType, + responseSchema: config.responseSchema, responseJsonSchema: config.responseJsonSchema, routingConfig: config.routingConfig, modelSelectionConfig: config.modelSelectionConfig, |
