From 686128e9a72e4dae1882f759871b03494b4a37a5 Mon Sep 17 00:00:00 2001 From: Johnny Huynh <27847622+johnnyhuy@users.noreply.github.com> Date: Mon, 20 Jul 2026 17:05:55 +1000 Subject: [PATCH] feat(gateways): add generic Corporate AI gateway placeholder entry 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 so the placeholder warning fires on the un-substituted template. - id: corporate - baseUrl: https://gateway..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. --- src/main/gateways/catalog.generated.ts | 21 +++++++++++++++++++++ src/main/gateways/catalog.source.json | 18 ++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/src/main/gateways/catalog.generated.ts b/src/main/gateways/catalog.generated.ts index 233f07b..19b1bc7 100644 --- a/src/main/gateways/catalog.generated.ts +++ b/src/main/gateways/catalog.generated.ts @@ -10,6 +10,27 @@ import type { GatewayEntry } from './types' export const GATEWAY_CATALOG: readonly GatewayEntry[] = [ + { + "id": "corporate", + "label": "Corporate AI gateway", + "baseUrl": "https://gateway..com", + "selfHostedHint": "Replace 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": "", + "nativeProviders": [ + "anthropic", + "openai" + ], + "notes": "Generic placeholder for any OpenAI-/Anthropic-compatible gateway. Set base URL when applying." + }, { "id": "truefoundry", "label": "TrueFoundry AI Gateway", diff --git a/src/main/gateways/catalog.source.json b/src/main/gateways/catalog.source.json index 8cb870d..11173aa 100644 --- a/src/main/gateways/catalog.source.json +++ b/src/main/gateways/catalog.source.json @@ -1,5 +1,23 @@ { "gateways": [ + { + "id": "corporate", + "label": "Corporate AI gateway", + "baseUrl": "https://gateway..com", + "selfHostedHint": "Replace 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": "", + "nativeProviders": ["anthropic", "openai"], + "notes": "Generic placeholder for any OpenAI-/Anthropic-compatible gateway. Set base URL when applying." + }, { "id": "truefoundry", "label": "TrueFoundry AI Gateway",