Skip to content

docs: document how to set model options like service_tier - #11643

Closed
djosh34 wants to merge 1 commit into
anomalyco:devfrom
djosh34:feature/addDocsForServiceTier
Closed

djosh34 wants to merge 1 commit into
anomalyco:devfrom
djosh34:feature/addDocsForServiceTier

Conversation

@djosh34

@djosh34 djosh34 commented Feb 1, 2026

Copy link
Copy Markdown

Fixes #7511

I spent a while trying to figure out how to set service_tier: "flex" as described in OpenAI Flex Processing. Turns out it was already supported, just not documented.

This PR adds:

  • Documentation showing how to map API reference parameters to opencode.json options
  • Concrete example for OpenAI Flex Processing (service_tier: "flex")
  • Tests in packages/opencode/test/session/llm.test.ts that set config options and verify they are present in the actual HTTP request body

How did you verify your code works?

Ran bun test on the opencode package. All tests pass.

Feedback welcome

Not sure if the tests are overkill for a docs PR. Happy to remove them if you prefer to keep this docs-only.

@github-actions

github-actions Bot commented Feb 1, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

Related PR:

  • PR #11599 - feat(opencode): cost calculation according to service_tier (OpenAI)

This PR is related because it also deals with service_tier configuration for OpenAI, though it focuses on cost calculation rather than documentation. It may be worth checking if there's any overlap in how service_tier is being handled or documented.

No other duplicate PRs addressing the same documentation topic were found.

@github-actions

github-actions Bot commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Support OpenAI service tier (flex/priority processing)

1 participant