Skip to content

fix(provider): widen interleaved reasoning fields - #39556

Open
opencode-agent[bot] wants to merge 2 commits into
devfrom
interleaved-fields-v1
Open

fix(provider): widen interleaved reasoning fields#39556
opencode-agent[bot] wants to merge 2 commits into
devfrom
interleaved-fields-v1

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • accept reasoning_text and arbitrary custom strings for interleaved reasoning fields
  • accept boolean or string values from models.dev while retaining the current object shape for compatibility
  • normalize string values into the internal { field } capability shape

Validation

  • bun test test/provider/provider.test.ts (99 pass)
  • GOMAXPROCS=2 bun typecheck in packages/core
  • packages/opencode typecheck exceeded the 10-minute host limit; the scoped provider suite passed

Pi currently checks reasoning_content, reasoning, and reasoning_text; these remain the suggested values while provider-specific strings are accepted.

Requested by: @rekram1-node (Aiden Cline via Slack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant