[PR #11643] docs: document how to set model options like service_tier #13876

Open
opened 2026-02-16 18:18:42 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11643

State: open
Merged: No


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.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11643 **State:** open **Merged:** No --- Fixes #7511 I spent a while trying to figure out how to set `service_tier: "flex"` as described in [OpenAI Flex Processing](https://platform.openai.com/docs/guides/flex-processing?api-mode=chat&lang=curl). 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.
yindo added the pull-request label 2026-02-16 18:18:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13876