Custom temperature with custom provider not sent in request #3286

Closed
opened 2026-02-16 17:39:31 -05:00 by yindo · 4 comments
Owner

Originally created by @blob42 on GitHub (Dec 3, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Hi,

I am using a custom provider (OpenAI compatible) and setting a custom temperature for the builtin agents build and plan has no effect.

  "agent": {
    "plan": {
      "temperature": 0.4
    },
    "build": {
      "temperature": 0.2
    },

The request is sent without any temperature parameter.

Am I missing something, I didn't find anything else in the docs ?

OpenCode version

1.0.129

Steps to reproduce

  • Add a custom provider with an open ai compatible endpoint
  • Set custom temperature parameters for the builtin agents (or custom agents)

Screenshot and/or share link

Image

Operating System

Linux

Terminal

Any Terminal

Originally created by @blob42 on GitHub (Dec 3, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Hi, I am using a custom provider (OpenAI compatible) and setting a custom temperature for the builtin agents `build` and `plan` has no effect. ```json "agent": { "plan": { "temperature": 0.4 }, "build": { "temperature": 0.2 }, ``` The request is sent without any temperature parameter. Am I missing something, I didn't find anything else in the docs ? ### OpenCode version 1.0.129 ### Steps to reproduce - Add a custom provider with an open ai compatible endpoint - Set custom temperature parameters for the builtin agents (or custom agents) ### Screenshot and/or share link <img width="759" height="773" alt="Image" src="https://github.com/user-attachments/assets/fb1032ee-ee4f-41c0-89ef-57baba5fa4b4" /> ### Operating System Linux ### Terminal Any Terminal
yindo added the bug label 2026-02-16 17:39:31 -05:00
yindo closed this issue 2026-02-16 17:39:31 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 3, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2785: Temperature not passed in request body - describes the same issue where temperature settings configured in agent config are not being sent to the API
  • #1644: AI_APICallError: temperature and top_p cannot both be specified - related issue with temperature/top_p parameter handling in request bodies

Feel free to ignore if these don't address your specific case.

@github-actions[bot] commented on GitHub (Dec 3, 2025): This issue might be a duplicate of existing issues. Please check: - #2785: Temperature not passed in request body - describes the same issue where temperature settings configured in agent config are not being sent to the API - #1644: AI_APICallError: `temperature` and `top_p` cannot both be specified - related issue with temperature/top_p parameter handling in request bodies Feel free to ignore if these don't address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 3, 2025):

@blob42 can you share your custom provider?

Maybe the model you set doesnt have temperature enabled as valid setting?

@rekram1-node commented on GitHub (Dec 3, 2025): @blob42 can you share your custom provider? Maybe the model you set doesnt have temperature enabled as valid setting?
Author
Owner

@rekram1-node commented on GitHub (Dec 3, 2025):

"models": {
        "model": {
          "temperature": true,
        },
      },

Super tiny example but the models need to let it be a valid setting

@rekram1-node commented on GitHub (Dec 3, 2025): ``` "models": { "model": { "temperature": true, }, }, ``` Super tiny example but the models need to let it be a valid setting
Author
Owner

@blob42 commented on GitHub (Dec 4, 2025):

@rekram1-node Thanks that was the issue.

I searched everywhere in the docs but did not find this important details. It would be great if it was mentioned somewhere

@blob42 commented on GitHub (Dec 4, 2025): @rekram1-node Thanks that was the issue. I searched everywhere in the docs but did not find this important details. It would be great if it was mentioned somewhere
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3286