Skip to content

[BUG] Export includes max token fields for unsupported models #7944

@hannesrudolph

Description

@hannesrudolph

Type

Bug

Problem

Exported settings include values for max output tokens and max thinking tokens even for models that do not support a reasoning budget or do not show these settings in the UI.

Context

  • In the Settings UI, token sliders only appear for models that support a reasoning budget.
  • When exporting settings, these fields still appear in the JSON for other models, which is misleading and can create invalid/unused configuration.

Reproduction

  1. Configure multiple providers/models, including at least one that does not show the max token/thinking token sliders in the UI.
  2. Export settings.
  3. Open the exported JSON and inspect those models.

Expected result

Only models that support a reasoning budget (and where the user explicitly set values) include these fields.

Actual result

The export includes these fields for models that do not support them or were never set in the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions