You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Support OpenAI service tier (flex/priority processing) #7511
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
OpenAI’s API supports selecting a processing/service tier. Although this can be expensive, but getting things done quickly for urgent tasks would be a great feature. Please add support for this in OpenCode.
Activity
emamulandalib commentedon Jan 11, 2026
So far I found it was introduced 2 months ago already as part of this PR #4914 (get codex working in copilot)
opencode/packages/opencode/src/provider/sdk/openai-compatible/src/responses/openai-responses-language-model.ts
Line 1706 in b267328
Tested with below configuration already and it's working but yes redundant value to handle. I guess here we need a good config design.
The config will be parsed here...
opencode/packages/opencode/src/provider/sdk/openai-compatible/src/responses/openai-responses-language-model.ts
Lines 196 to 200 in b267328
...and it will be sent to API.
opencode/packages/opencode/src/provider/sdk/openai-compatible/src/responses/openai-responses-language-model.ts
Line 289 in b267328
Then, the repsonse will be captured for stream or non-stream
opencode/packages/opencode/src/provider/sdk/openai-compatible/src/responses/openai-responses-language-model.ts
Lines 742 to 744 in b267328
opencode/packages/opencode/src/provider/sdk/openai-compatible/src/responses/openai-responses-language-model.ts
Lines 1237 to 1239 in b267328
Added some logs to verify
This works as well at model level configuration. I guess we need to update the documentation and the config schema https://opencode.ai/config.json.
aarock1234 commentedon Jan 23, 2026
Bump; would be useful to have. Cursor has it under its
GPT-... Fastmodels.djosh34 commentedon Jan 31, 2026
How/Where to put this now in
opencode.json?waclawthedev commentedon Feb 1, 2026
I use it with config:
djosh34 commentedon Feb 1, 2026
Amazing, added a PR for the docs only:
#11643
waclawthedev commentedon Feb 1, 2026
@djosh34 FYI #11599
djosh34 commentedon Feb 1, 2026
when testing i couldn't get serviceTier to work with camelcase like your example shows, only with snake_case
djosh34 commentedon Feb 1, 2026
open to merging my changes in your PR though
djosh34 commentedon Feb 1, 2026
nvm this comment, this is only if you don't add it to config like your PR
waclawthedev commentedon Feb 2, 2026
@djosh34 check again your point.
To test your finding I added logging here: https://github.com/waclawthedev/opencode/commit/1bdfd4e3980e19cfe88ccf6fc24070a298ca72bc
So:
github-actions commentedon Apr 4, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.