Skip to content

feat(gateways): add generic Corporate AI gateway placeholder#13

Merged
johnnyhuy merged 1 commit into
mainfrom
feat/corporate-gateway-placeholder
Jul 20, 2026
Merged

feat(gateways): add generic Corporate AI gateway placeholder#13
johnnyhuy merged 1 commit into
mainfrom
feat/corporate-gateway-placeholder

Conversation

@johnnyhuy

Copy link
Copy Markdown
Contributor

Summary

Adds a non-vendor gateway entry to the catalog so users without a specific platform in mind see something neutral first. The wizard card shows https://gateway.<your-org>.com with a placeholder warning, and applying requires the user to fill in their own hostname.

New entry

{
  "id": "corporate",
  "label": "Corporate AI gateway",
  "baseUrl": "https://gateway.<your-org>.com",
  "selfHostedHint": "Replace <your-org> with your hostname. Often exposed at /v1/chat/completions (OpenAI) and /v1/messages (Anthropic).",
  "endpoints": { "openai": "/v1", "anthropic": "/v1/messages" },
  "auth": { "header": "Authorization", "scheme": "Bearer", "envVar": "GATEWAY_API_KEY" },
  "modelIdFormat": "<model>",
  "nativeProviders": ["anthropic", "openai"],
  "notes": "Generic placeholder for any OpenAI-/Anthropic-compatible gateway."
}

Catalog now has 11 rows (was 10). Vendor entries (TrueFoundry, LiteLLM, Cloudflare, etc.) stay intact for users on a specific platform.

Verification

  • npm run typecheck && npm run lint && npm run build
  • node scripts/gen-catalog.mjs regenerated catalog.generated.ts
  • Renderer screenshot shows the "Corporate AI gateway" card first, with fill in <your-org> warning

Why not just genericize everything

The vendor entries are real — they encode each gateway's actual auth shape (TrueFoundry accepts both x-api-key and Bearer; Cloudflare needs an account_id in the path). Removing them would leave enterprise users unable to point Hoist at their actual gateway.

Adds a non-vendor gateway entry at the top of the catalog so users without a
specific gateway in mind see something neutral first. baseUrl uses
<your-org> so the placeholder warning fires on the un-substituted template.

- id: corporate
- baseUrl: https://gateway.<your-org>.com
- endpoints: openai /v1, anthropic /v1/messages
- auth: Authorization Bearer, env: GATEWAY_API_KEY
- notes: 'Generic placeholder for any OpenAI-/Anthropic-compatible gateway. Set base URL when applying.'

Catalog now has 11 rows (was 10). Vendor entries (TrueFoundry, LiteLLM,
Cloudflare, etc.) stay intact for users on a specific platform.
@johnnyhuy
johnnyhuy merged commit 331d907 into main Jul 20, 2026
@johnnyhuy
johnnyhuy deleted the feat/corporate-gateway-placeholder branch July 20, 2026 07:06
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