We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48211fa commit 670d910Copy full SHA for 670d910
packages/ai/src/models/generative-model.ts
@@ -176,7 +176,7 @@ function validateGenerationConfig(generationConfig: GenerationConfig): void {
176
if (
177
// != allows for null and undefined. 0 is considered "set" by the model
178
generationConfig.thinkingConfig?.thinkingBudget != null &&
179
- generationConfig.thinkingConfig.thinkingLevel
+ generationConfig.thinkingConfig?.thinkingLevel
180
) {
181
throw new AIError(
182
AIErrorCode.UNSUPPORTED,
0 commit comments