Skip to content

temperature not sent in request body for custom OpenAI-compatible provider #25755

Closed as not planned

Description

@klangmuster

Description

When using a custom @ai-sdk/openai-compatible provider, the temperature parameter configured in agent frontmatter or in opencode.json under agent is never included in the /v1/chat/completions request body.

Verified with tcpdump on lo:8080 — no temperature field appears regardless of:

frontmatter temperature: 0.3 in agent .md file
"agent": { "review": { "temperature": 0.3 } } in opencode.json
model name (tested with qwen3-moe-thinking and neutral alias review-agent)
Works with: Anthropic provider (per official docs example)

Config: custom provider via @ai-sdk/openai-compatible, baseURL: http://localhost:8080/v1

Plugins

No response

OpenCode version

1.14.33

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Arch Linux

Terminal

No response

Activity

  1. hmppt commented on Jun 30, 2026

    @hmppt

    I also encountered this problem, but unfortunately, there is still no solution to it at the moment.

  2. github-actions commented on Aug 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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