Theia API Documentation v1.71.0
    Preparing search index...
    • Translates a reasoning level to the Gemini request fragment to merge into settings. Returns {} when reasoning is not requested, unsupported, or disabled — so the caller can spread it unconditionally. Per the Gemini docs thinkingLevel and thinkingBudget must never appear together.

      Parameters

      • level: undefined | ReasoningLevel
      • api: undefined | ReasoningApi

        'effort' for thinkingConfig.thinkingLevel (string enum), 'budget' for thinkingConfig.thinkingBudget (-1 dynamic, positive = token cap).

      Returns Record<string, unknown>