Skip to content

feat(console): add a Custom API account form, provider mark and copy - #664

Open
guyu233 wants to merge 2 commits into
caigee-cmd:mainfrom
guyu233:feat/console-custom-endpoint
Open

guyu233 wants to merge 2 commits into
caigee-cmd:mainfrom
guyu233:feat/console-custom-endpoint

Conversation

@guyu233

@guyu233 guyu233 commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Why

The console had no way to enter a Custom API endpoint: "Add account" only knows the native provider families, so an operator had nowhere to paste a base URL and key, and no icon or label for the account once it exists.

This is the console half of the Custom API provider. It is deliberately split from the backend PR so both can be reviewed and merged on their own — the file sets are disjoint.

What changed

  • AddAccountModal: a Custom API branch with Base URL (required, validated), API Key (optional for local servers), upstream protocol (OpenAI / Anthropic / Responses / auto) and an optional model list, posted as a custom-api-v1 credential.
  • CustomMark plus a custom case in ProviderMark, and isCustomProvider in lib/provider.ts so accounts read "Custom API" in lists.
  • i18n: English and Chinese strings for the form, lead paragraph, hints and validation message.
  • changelog/unreleased/custom-endpoint-console.md, and the rebuilt embedded console assets (npm run sync) in their own commit.

Behaviour without the backend PR

The provider list comes from the server, so until the custom family is registered the form never appears and nothing changes for users. Merging this first is inert, not broken; merging it after the backend PR makes the form live.

Tests

  • cd frontend && npm run lint — 0 errors
  • cd frontend && npm run sync — build + embedded assets synced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant