File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,29 @@ export const GeminiConfigSchema = GenerationCommonConfigSchema.extend({
215
215
'Retrieve public web data for grounding, powered by Google Search.'
216
216
)
217
217
. optional ( ) ,
218
+ thinkingConfig : z
219
+ . object ( {
220
+ includeThoughts : z
221
+ . boolean ( )
222
+ . describe (
223
+ 'Indicates whether to include thoughts in the response.' +
224
+ 'If true, thoughts are returned only when available.'
225
+ )
226
+ . optional ( ) ,
227
+ thinkingBudget : z
228
+ . number ( )
229
+ . min ( 0 )
230
+ . max ( 24576 )
231
+ . describe (
232
+ 'The thinking budget parameter gives the model guidance on the ' +
233
+ 'number of thinking tokens it can use when generating a response. ' +
234
+ 'A greater number of tokens is typically associated with more detailed ' +
235
+ 'thinking, which is needed for solving more complex tasks. ' +
236
+ 'Setting the thinking budget to 0 disables thinking.'
237
+ )
238
+ . optional ( ) ,
239
+ } )
240
+ . optional ( ) ,
218
241
} ) . passthrough ( ) ;
219
242
export type GeminiConfig = z . infer < typeof GeminiConfigSchema > ;
220
243
Original file line number Diff line number Diff line change @@ -261,6 +261,29 @@ export const GeminiConfigSchema = GenerationCommonConfigSchema.extend({
261
261
'With NONE, the model is prohibited from making function calls.'
262
262
)
263
263
. optional ( ) ,
264
+ thinkingConfig : z
265
+ . object ( {
266
+ includeThoughts : z
267
+ . boolean ( )
268
+ . describe (
269
+ 'Indicates whether to include thoughts in the response.' +
270
+ 'If true, thoughts are returned only when available.'
271
+ )
272
+ . optional ( ) ,
273
+ thinkingBudget : z
274
+ . number ( )
275
+ . min ( 0 )
276
+ . max ( 24576 )
277
+ . describe (
278
+ 'The thinking budget parameter gives the model guidance on the ' +
279
+ 'number of thinking tokens it can use when generating a response. ' +
280
+ 'A greater number of tokens is typically associated with more detailed ' +
281
+ 'thinking, which is needed for solving more complex tasks. ' +
282
+ 'Setting the thinking budget to 0 disables thinking.'
283
+ )
284
+ . optional ( ) ,
285
+ } )
286
+ . optional ( ) ,
264
287
} ) . passthrough ( ) ;
265
288
266
289
/**
You can’t perform that action at this time.
0 commit comments