GeezerVison is showing github.com — feat(api-access): expose gateway endpoints and external model catalog by Wibias · Pull Request #392 · lidge-jun/opencodex
Conversation
Wibias
commented
Jul 24, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Follow-up for #357 on top of the already-merged Chat Completions gateway work in #279.
This PR improves the external aggregated model API experience without re-implementing /v1/chat/completions.
Changes
- Add
buildApiAccessEndpoints() and return richer metadata from GET /api/keys
- Expand the API Access page to show:
/v1
/v1/responses
/v1/chat/completions
/v1/messages
/v1/models
- Document auth differences between Responses and Chat Completions
- Add an external model catalog with copy-ID and simple test actions
- Add i18n coverage for
en, de, ja, ko, ru, zh
- Add regression test for API access endpoint metadata
Verification
bun test tests/api-access-endpoints.test.ts
cd gui && bun x tsc -b
cd gui && bun run build
Notes
This is intentionally scoped to the API Access slice. Remaining #357 work such as richer SDK examples, stronger remote-auth test UX, and key scopes/limits can follow in later PRs.
Summary by CodeRabbit
- New Features
- Expanded API Access with protocol-specific endpoints, authentication guidance, and curl/usage snippets.
- Added an external Models catalog with searchable results, model ID copy, and per-model connectivity testing (including gated Claude “messages” support).
- Localization
- Updated API Access translations (DE/EN/JA/KO/RU/ZH) for endpoints, auth notes, and external model catalog text.
- Bug Fixes
- Improved API endpoint/base URL generation to correctly handle IPv6, wildcard binds, and request context.
- UI/Style
- Refined API page layout and connectivity status styling for models.
- Tests
- Added coverage for endpoint construction, IPv6/wildcard behavior, and external model/protocol classification.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Extend the API Access page and /api/keys metadata for issue #357 follow-up work.
PR #279 already provides /v1/chat/completions on dev; this slice focuses on
dashboard guidance, endpoint metadata, model catalog visibility, and copy/test UX.
- add buildApiAccessEndpoints() and richer /api/keys response
- expand API Access UI with base URL, protocol endpoints, auth notes, and examples
- show externally callable models with copy/test actions
- add regression test and i18n coverage
This comment was marked as outdated.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API Access direction is useful, but this head is not mergeable yet. Required CI fails on all three primary platforms because src/server/management/oauth-account-routes.ts specifies endpoint twice in the returned object (TS2783). Please remove the duplicate/overwritten field, keep buildApiAccessEndpoints as the single source of truth, and rerun the exact-head CI before re-requesting review.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
- preserve raw /v1/models IDs instead of rebuilding provider/id pairs
- normalize wildcard bind hosts to loopback in API access URLs
- expose claudeCodeEnabled from /api/keys and hide Messages UI when disabled
- add regression tests for wildcard hosts and Claude inbound gating
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Keep the PR multi-endpoint catalog UI and i18n titles while preserving
dev's create-guard useRef and localized usage sample string.
Hide Messages examples when Claude inbound is off, classify bare /v1/models
rows via owned_by, and publish wildcard bind endpoints from the request host.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Satisfy react-refresh/only-export-components by keeping classification and
protocol helpers in api-access-models.ts.
Align endpoint/subtitle translations, add ok test styling and clipboard
guarding, and drop unused api.* locale keys.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Lock the Claude-gated Messages usage panel to its nearest conditional and
cover bracketed IPv6 requestHost:port wildcard endpoint publishing.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Align de api.authChatCompletions with other locales so Models uses the same
header guidance as Chat Completions.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 25, 2026
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
feat(api-access): expose gateway endpoints and external model catalog
Reviewers
lidge-jun
Awaiting requested review from lidge-jun
lidge-jun is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|