Skip to content

Reasoning effort from opencode.json not passed through for Azure models #1823

Closed

Description

@JeongJuhyeon

opencode.json

{
    "$schema": "https://opencode.ai/config.json",
    "theme": "opencode",
    "model": "azure/gpt-5-mini",
    "autoupdate": true,
    "agent": {
        "build": {
            "mode": "primary",
            "model": "azure/gpt-5-mini",
            "reasoningEffort": "high",
            "textVerbosity": "low",
            "tools": {
                "write": true,
                "edit": true,
                "bash": true
            }
        },
        "plan": {
            "mode": "primary",
            "model": "azure/gpt-5-mini",
            "reasoningEffort": "high",
            "textVerbosity": "medium",
            "tools": {
                "write": false,
                "edit": false,
                "bash": false
            }
        }
    }
}

Request sent by opencode:

{
    "model": "gpt-5-mini",
    "input": [
        {
            "role": "developer",
            "content": "..."
        },
        {
            "role": "developer",
            "content": "..."
        },
        {
            "role": "user",
            "content": [
                {
                    "type": "input_text",
                    "text": "Where is Berlin?"
                },
                {
                    "type": "input_text",
                    "text": "<system-reminder>\nPlan mode is active. The user indicated that they do not want you to execute yet\n-- you MUST NOT make any edits, run any non-readonly tools (including changing\nconfigs or making commits), or otherwise make any changes to the system. This\nsupersedes any other instructions you have received (for example, to make\nedits). Bash tool must only run readonly commands\n</system-reminder>\n\n"
                }
            ]
        }
    ],
    "max_output_tokens": 32000,
    "tools": [
        ...
    ],
    "tool_choice": "auto",
    "stream": true
}

Expected: reasoning_effort is included in the request
Actual result: reasoning_effort is missing

Activity

  1. thdxr commented on Aug 12, 2025

    @thdxr
    Member

    this should be fixed on latest - try again?

  2. self-assigned this
    on Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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