[Feature]: Support direct OpenAI Decisions API routing
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend-api-design
Research direction
Start with src/combos/jev-decision-contract.ts and the Vercel Decisions support in PR #7574; trace how decision provider connection testing and routing select request and response formats. Compare that path with OpenAI’s Decisions API requirements in the linked docs. Done means an OpenAI key limited to Decisions → Write can be tested and used for routing while existing model and effort restrictions, timeouts, fallbacks, and other backends continue to work.
Written by the indexing model from the issue text.
Description
Area
Proxy and routing
What are you trying to accomplish?
I'd like to use my OpenAI API credits to choose the model and reasoning effort for a JEV Combo. The selected models would still run through my existing provider connections, ncluding my existing Codex-login provider.
What prevents this today?
The v2.97.0 code only recognises ai-gateway.vercel.sh as a Decisions endpoint. Pointing a decision provider at OpenAI still uses the System One request format.
This comes from checking the source. I haven't tested it with a live OpenAI request.
What should OpenCodex do?
Let users connect directly to OpenAI's Decisions API with their own API key, using OpenAI's request and response format.
Connection testing and routing should work with a key limited to Decisions → Write. The existing model and effort restrictions, timeouts, fallbacks, and other decision backends should keep working as they do today.
Example usage or interface
Add a decision provider with these settings from OpenAI's API docs:
Endpoint: https://api.openai.com/v1/decisions
Model: gpt-6-luna
Authentication: OpenAI API key
Then select it as the decision provider for a JEV Combo containing my existing Codex models.
Alternatives or workarounds
I've considered TypeSafe JEV, Vercel AI Gateway, and using a Responses model as the router. I'd prefer to use the Decisions API directly through OpenAI.
Additional context
PR #7574 added Vercel Decisions support. OpenAI also lists Decisions as covered by eligible ChatGPT API credits.
Checks
- I searched existing issues and documentation.
- This request describes a concrete OpenCodex workflow rather than merely naming a desired technology.
- I removed secrets and personal data.
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.3k
- Avg merge
- 19h 24m
- Merged PRs (30d)
- 676
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lidge-jun/opencodex
-
bug(gui): WorkBuddy AI quota/credits missing from top QuotaSummaryBar despite successful probePossibly taken A pull request linked to this issue is open or already merged. Openaccount-pool bug gui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
lidge-jun/opencodex#8131 · 3 comments ·
Maintainers usually reply within 1 day
-
bug streaming
Difficulty 4/5 3-5 days Newbie friendliness 48/100
lidge-jun/opencodex#8231 · 1 comment ·
Maintainers usually reply within 1 day
-
bug streaming
Difficulty 4/5 1-2 days Newbie friendliness 48/100
lidge-jun/opencodex#8216 · 1 comment ·
Maintainers usually reply within 1 day
-
bug streaming
Difficulty 4/5 3-5 days Newbie friendliness 55/100
lidge-jun/opencodex#8206 · 1 comment ·
Maintainers usually reply within 1 day
-
provider provider-compatibility
Difficulty 4/5 3-5 days Newbie friendliness 35/100
lidge-jun/opencodex#8204 · 2 comments ·
Maintainers usually reply within 1 day
All issues in lidge-jun/opencodex
Similar issues
-
Navbar avatar and name stay stale after saving profile changesPossibly taken @alexechoi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
marmelab/atomic-crm#416 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
epam/ai-dial-react-file-manager#99 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
canonical/craft-actions#146 ·
Maintainers usually reply within 2 days
-
feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bluesky-social/social-app#12343 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
lucide-icons/lucide#5165 ·
Maintainers usually reply within 1 day