[BUG] 'minimal' value is not support with the 'gpt-5.1' model #2940

Closed
opened 2026-02-16 17:37:55 -05:00 by yindo · 0 comments
Owner

Originally created by @WAY29 on GitHub (Nov 18, 2025).

{
    "error": {
        "message": "Unsupported value: 'minimal' is not supported with the 'gpt-5.1' model. Supported values are: 'none', 'low', 'medium', and 'high'.",
        "type": "invalid_request_error",
        "param": "***.effort",
        "code": "unsupported_value"
    }
}

https://github.com/sst/opencode/blob/ce6436280af6aa1bb5aef6c711a185956cdc56bd/packages/opencode/src/session/prompt.ts#L1398-L1400

Maybe set to low/none if using gpt-5.1 or gpt-5.1-codex, Reference: https://platform.openai.com/docs/api-reference/assistants/createAssistant#assistants_createassistant-reasoning_effort

Originally created by @WAY29 on GitHub (Nov 18, 2025). ```json { "error": { "message": "Unsupported value: 'minimal' is not supported with the 'gpt-5.1' model. Supported values are: 'none', 'low', 'medium', and 'high'.", "type": "invalid_request_error", "param": "***.effort", "code": "unsupported_value" } } ``` https://github.com/sst/opencode/blob/ce6436280af6aa1bb5aef6c711a185956cdc56bd/packages/opencode/src/session/prompt.ts#L1398-L1400 Maybe set to low/none if using `gpt-5.1` or `gpt-5.1-codex`, Reference: https://platform.openai.com/docs/api-reference/assistants/createAssistant#assistants_createassistant-reasoning_effort
yindo closed this issue 2026-02-16 17:37:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2940