Repository navigation
feat(providers): add AI/ML API as a built-in provider - #8919
hugoaimlapi wants to merge 27 commits into
Conversation
Follow up on lidge-jun#7904. Co-authored-by: Stan <stan@aimlapi.com> Co-authored-by: Vito Bush <152179873+vito-bush@users.noreply.github.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This pull request was already a draft. Its draft status will be preserved after every issue above is resolved. |
|
Owner decision, 2026-11-19 (KST), recorded per We are accepting the AI/ML API integration. Concretely: Accepted
Not accepted
Evidence boundary, stated plainly How it lands @Ingwannu — per the merge policy an outstanding maintainer change request still has to be resolved or explicitly withdrawn before this integrates. The four items from your 2026-10-29 review are addressed as: legal entity cited above, routing authorization recorded as an owner decision rather than a citation, maintenance owner named, partner header dropped. |
|
Carried here: #8935 (branch |
Lands the aimlapi preset from #8919 (Hugo / AI/ML API) on current dev, with the owner decision recorded on that pull request. - `aimlapi` key preset: OpenAI Chat adapter at https://api.aimlapi.com/v1, seven seeded vendor-prefixed chat ids, live discovery filtered to `type: openai/chat-completions` rows of the public catalog, and `apiKeyValidation: "unknown"` because that catalog answers 200 to any bearer value. - `X-AIMLAPI-Source: agent/opencodex` attribution on inference and model discovery at the preset destination. - `withoutRegistryStaticHeaderCopies`: a row retargeted to another origin must not keep carrying preset headers, on either the inference path (`routed-config.ts`) or the discovery path (`oauth/index.ts`). - Preset totals recounted from the registry: 110 total, 89 key-based, across the quickstarts, provider guides and the Spanish catalog copy. The `X-AIMLAPI-Partner-ID` header the vendor asked for is deliberately absent. A default third-party partner identifier shipped to every user of an MIT client needs a commercial arrangement behind it, and there is none (owner decision, 2026-11-19). The tests assert only the source header is declared, and the retargeted-row case now exercises an older seeded copy of that header instead. Co-authored-by: Hugo <hugo@aimlapi.com> Co-authored-by: Stan <stan@aimlapi.com> Co-authored-by: Vito Bush <152179873+vito-bush@users.noreply.github.com>
Hi @lidge-jun and @Ingwannu, I’m Hugo, CGO at aimlapi.com. I’m sharing an update on our OpenCodex integration and opening this follow-up to #7904. Thanks for the earlier review.
Summary
aimlapias a built-in OpenAI Chat Completions provider athttps://api.aimlapi.com/v1. Users can select it inocx init, runocx provider add aimlapi, or use the dashboard’s Add provider picker. The preset accepts an API key or theAIMLAPI_API_KEYenvironment reference.openai/gpt-5.6-terra, preserve vendor-prefixed model IDs, and filter the public/v1/modelscatalog to Chat Completions entries.devate7317b6e. Add the provider to the English and Spanish API-key catalogs introduced in #8768 and recount 109 presets, including 88 API-key presets, from the registry.API operator and open review items
Boiler Labs FZ-LLC operates the AI/ML API service. Section 1 of the Terms of Service identifies Boiler Labs FZ-LLC as the service provider. Section 7 covers API access and usage.
X-AIMLAPI-Partner-ID.Verification
Local testing on macOS arm64 used the repository’s pinned Bun 1.4.4. The published head
61aa8c285has the same Git tree as the tested local commit041b1f33.bun run typecheck,bun run structure:check,bun scripts/file-size-ratchet.ts,bun run privacy:scan,bun run skill:surface:check, andgit diff --checkpassed.bun testrun across 13 files, covering the preset, routing and discovery, Management API, registry parity, documentation and release checks — 306 passed, 0 failed.GET https://api.aimlapi.com/v1/modelswithout credentials listed all seven seeded model IDs as Chat Completions entries.bun run test:changedon base819468cf9reported 57,934 passes, 299 skips, 17 failures, and 3 errors. Re-running the 11 affected files on cleandevate7317b6eand on the integration yielded the same 370 passes, the same 13 failed tests, and 1 error on each. Live authenticated inference and cross-platform CI remain unverified.Checklist
Co-authored-by: Stan stan@aimlapi.com
Co-authored-by: Vito Bush 152179873+vito-bush@users.noreply.github.com
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.