@tanstack/ai-gemini 0.26.5 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -222,7 +222,10 @@ Cyclic references are unrolled to a limited degree and, as such, may only be use
222
222
  responseJsonSchema?: Schema
223
223
  }
224
224
 
225
- export interface GeminiThinkingOptions {
225
+ export interface GeminiThinkingOptions<
226
+ TThinkingLevel extends keyof typeof ThinkingLevel =
227
+ keyof typeof ThinkingLevel,
228
+ > {
226
229
  /**
227
230
  * Config for thinking features. An error will be returned if this field is
228
231
  * set for models that don't support thinking.
@@ -248,7 +251,7 @@ export interface GeminiThinkingOptions {
248
251
  * The level of thoughts tokens that the model should generate
249
252
  * (Gemini 3.x and later).
250
253
  */
251
- thinkingLevel?: keyof typeof ThinkingLevel
254
+ thinkingLevel?: TThinkingLevel
252
255
  }
253
256
  }
254
257