mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-05 14:52:09 +03:00
* feat(provider): add Chenzk API OpenAI-compatible gateway
Registers Chenzk (chenzk.top) as a new API-key gateway provider — an
OpenAI-compatible aggregator exposing GPT/Claude/DeepSeek/GLM model groups
behind one endpoint. Adapted to OmniRoute's directory-per-provider registry
(open-sse/config/providers/registry/) and metadata catalog
(src/shared/constants/providers/apikey/gateways.ts), following the same
passthrough-models pattern already used for kenari/x5lab/sumopod (live
/v1/models catalog resolves the model list instead of a hardcoded array).
Co-authored-by: Ahmad Putra Cahyo <CahyokPutraDev99@users.noreply.github.com>
Inspired-by: https://github.com/decolua/9router/pull/2437
* chore(changelog): fragment for #7246
* test(provider): regen golden snapshot + bump family-count for Chenzk gateway
The Chenzk provider added in a616b88c9 registered a new APIKEY_PROVIDERS
entry (gateways.ts) but did not update the two characterization tests
that assert exact provider counts: the translate-path golden snapshot
(missing the chenzk entry) and the 167-entry family-merge count in
providers-constants-split.test.ts (now 168, verified as a strict
partition sum across the 6 family files, no loss/dup).
Co-authored-by: Ahmad Putra Cahyo <CahyokPutraDev99@users.noreply.github.com>
---------
Co-authored-by: Ahmad Putra Cahyo <CahyokPutraDev99@users.noreply.github.com>
46 lines
1.9 KiB
TypeScript
46 lines
1.9 KiB
TypeScript
export { APP_CONFIG, THEME_CONFIG } from "./appConfig";
|
|
|
|
// Provider API endpoints (for display only)
|
|
export const PROVIDER_ENDPOINTS = {
|
|
agentrouter: "https://agentrouter.org/v1/chat/completions",
|
|
openrouter: "https://openrouter.ai/api/v1/chat/completions",
|
|
dgrid: "https://api.dgrid.ai/v1/chat/completions",
|
|
bai: "https://api.b.ai/v1/chat/completions",
|
|
qiniu: "https://api.qnaigc.com/v1/chat/completions",
|
|
glm: "https://api.z.ai/api/anthropic/v1/messages",
|
|
glmt: "https://api.z.ai/api/anthropic/v1/messages",
|
|
"bailian-coding-plan": "https://coding-intl.dashscope.aliyuncs.com/apps/anthropic/v1/messages",
|
|
kimi: "https://api.moonshot.ai/v1/chat/completions",
|
|
"kimi-coding": "https://api.kimi.com/coding/v1/messages",
|
|
"kimi-coding-apikey": "https://api.kimi.com/coding/v1/messages",
|
|
minimax: "https://api.minimax.io/anthropic/v1/messages",
|
|
"minimax-cn": "https://api.minimaxi.com/anthropic/v1/messages",
|
|
crof: "https://crof.ai/v1/chat/completions",
|
|
zenmux: "https://zenmux.ai/api/v1/chat/completions",
|
|
openadapter: "https://api.openadapter.in/v1/chat/completions",
|
|
dit: "https://api.dit.ai/v1/chat/completions",
|
|
tokenrouter: "https://api.tokenrouter.com/v1/chat/completions",
|
|
sumopod: "https://ai.sumopod.com/v1/chat/completions",
|
|
x5lab: "https://api.x5lab.dev/v1/chat/completions",
|
|
kenari: "https://kenari.id/v1/chat/completions",
|
|
chenzk: "https://chenzk.top/v1/chat/completions",
|
|
openai: "https://api.openai.com/v1/chat/completions",
|
|
anthropic: "https://api.anthropic.com/v1/messages",
|
|
gemini: "https://generativelanguage.googleapis.com/v1beta/models",
|
|
};
|
|
|
|
// Re-export from providers.js for backward compatibility
|
|
export {
|
|
NOAUTH_PROVIDERS,
|
|
OAUTH_PROVIDERS,
|
|
APIKEY_PROVIDERS,
|
|
WEB_COOKIE_PROVIDERS,
|
|
SEARCH_PROVIDERS,
|
|
AUDIO_ONLY_PROVIDERS,
|
|
AI_PROVIDERS,
|
|
AUTH_METHODS,
|
|
} from "./providers";
|
|
|
|
// Re-export from models.js for backward compatibility
|
|
export { PROVIDER_MODELS, AI_MODELS } from "./models";
|