Skip to content

Commit 670d910

Browse files
committed
make config clearer
1 parent 48211fa commit 670d910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ai/src/models/generative-model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function validateGenerationConfig(generationConfig: GenerationConfig): void {
176176
if (
177177
// != allows for null and undefined. 0 is considered "set" by the model
178178
generationConfig.thinkingConfig?.thinkingBudget != null &&
179-
generationConfig.thinkingConfig.thinkingLevel
179+
generationConfig.thinkingConfig?.thinkingLevel
180180
) {
181181
throw new AIError(
182182
AIErrorCode.UNSUPPORTED,

0 commit comments

Comments
 (0)