Skip to content

Console OpenAI variants send legacy SDK reasoning fields as raw JSON #46585

Description

@vimtor

Description

Regression after #46134: V2 reads /api/v2/config, but existing Console OpenAI variants can store SDK-style reasoning fields in body. They now reach the upstream API unchanged and fail with 400 Unknown parameter: reasoningEffort. Native reasoning bodies work.

Plugins

Built-in OpenCode Console provider.

OpenCode version

0.0.0-dev-18806; earlier 0.0.0-beta-18743 interprets the existing configuration through /api/config.

Steps to reproduce

  1. Use a working Console model with package aisdk:@ai-sdk/openai.
  2. Configure a high variant with body: {"reasoningEffort":"high","reasoningSummary":"auto"}.
  3. Select that variant and send a prompt.
  4. Observe HTTP 400; the same model without the variant succeeds.

Expected: preserve existing variant behavior while accepting native body.reasoning and keeping Console configuration generic.

Operating System

macOS arm64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions