Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
295 changes: 294 additions & 1 deletion open-sse/config/providerRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@ const KIMI_CODING_SHARED = {
"Anthropic-Version": ANTHROPIC_VERSION_HEADER,
},
models: [
{ id: "kimi-k2.6", name: "Kimi K2.6", contextLength: 262144, maxOutputTokens: 262144, supportsVision: true },
{
id: "kimi-k2.6",
name: "Kimi K2.6",
contextLength: 262144,
maxOutputTokens: 262144,
supportsVision: true,
},
{
id: "kimi-k2.6-thinking",
name: "Kimi K2.6 Thinking",
Expand Down Expand Up @@ -2074,6 +2080,293 @@ export const REGISTRY: Record<string, RegistryEntry> = {
],
},

novita: {
id: "novita",
alias: "novita",
format: "openai",
executor: "default",
baseUrl: "https://api.novita.ai/v3/chat/completions",
modelsUrl: "https://api.novita.ai/v3/models",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "ai-ai/llama-3.1-8b-instruct", name: "Llama 3.1 8B" }],
},

baidu: {
id: "baidu",
alias: "baidu",
format: "openai",
executor: "default",
baseUrl: "https://qianfan.baidubce.com/v2/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "ernie-4.0-8k", name: "ERNIE 4.0 8K" }],
},
Comment on lines +2095 to +2104

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The baidu entry is a duplicate of the existing qianfan provider (lines 1520-1535). Both point to the same Baidu Qianfan endpoint. It is better to consolidate these or use aliases to avoid configuration drift.


baichuan: {
id: "baichuan",
alias: "baichuan",
format: "openai",
executor: "default",
baseUrl: "https://api.baichuan-ai.com/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "Baichuan4", name: "Baichuan 4" }],
},

coze: {
id: "coze",
alias: "coze",
format: "openai",
executor: "default",
baseUrl: "https://api.coze.com/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "claude-3-7-sonnet-20250514", name: "Claude 3.7 Sonnet" }],
},
Comment on lines +2117 to +2126

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The coze API is not natively OpenAI-compatible; it uses a proprietary schema and endpoint (v1/chat). Setting format: "openai" with the default executor will cause requests to fail. This provider requires a custom executor or a dedicated format adapter.


dify: {
id: "dify",
alias: "dify",
format: "openai",
executor: "default",
baseUrl: "https://api.dify.ai/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "auto", name: "Auto" }],
},
Comment on lines +2128 to +2137

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The dify provider uses a proprietary API (v1/chat-messages) and is not compatible with the standard OpenAI format. Using the default executor with openai format will result in runtime errors.


lepton: {
id: "lepton",
alias: "lepton",
format: "openai",
executor: "default",
baseUrl: "https://api.lepton.ai/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "llama-3.1-8b", name: "Llama 3.1 8B" }],
},

kluster: {
id: "kluster",
alias: "kluster",
format: "openai",
executor: "default",
baseUrl: "https://api.kluster.ai/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "auto", name: "Auto" }],
},

krutrim: {
id: "krutrim",
alias: "krutrim",
format: "openai",
executor: "default",
baseUrl: "https://api.krutrim.com/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "krutrim-2-7b-instruct", name: "Krutrim 2 7B" }],
},

liquid: {
id: "liquid",
alias: "liquid",
format: "openai",
executor: "default",
baseUrl: "https://api.liquid.ai/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "liquid-lfm-40b", name: "Liquid LFM 40B" }],
},

nomic: {
id: "nomic",
alias: "nomic",
format: "openai",
executor: "default",
baseUrl: "https://api.nomic.ai/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "nomic-embed-text-v1.5", name: "Nomic Embed Text" }],
},

monsterapi: {
id: "monsterapi",
alias: "monster",
format: "openai",
executor: "default",
baseUrl: "https://api.monsterapi.ai/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "llama-3-8b-fuse", name: "Llama 3 8B Fuse" }],
},

nlpcloud: {
id: "nlpcloud",
alias: "nlpc",
format: "openai",
executor: "default",
baseUrl: "https://api.nlpcloud.io/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "llama-3-8b-instruct", name: "Llama 3 8B" }],
},
Comment on lines +2205 to +2214

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The nlpcloud provider is incorrectly configured as format: "openai". As noted in the project's provider definitions (src/shared/constants/providers.ts:570) and validation logic (src/lib/providers/validation.ts:1850), NLP Cloud uses a proprietary chatbot API and requires a specific adapter.


phind: {
id: "phind",
alias: "phind",
format: "openai",
executor: "default",
baseUrl: "https://api.phind.com/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "Phind-70B", name: "Phind 70B" }],
},
Comment on lines +2216 to +2225

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Phind does not offer a public OpenAI-compatible API at https://api.phind.com/v1/chat/completions. This endpoint is likely to return a 404 or authentication error as Phind is primarily a web-based search tool.


poolside: {
id: "poolside",
alias: "poolside",
format: "openai",
executor: "default",
baseUrl: "https://api.poolside.ai/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "poolside-model", name: "Poolside Model" }],
},

chutes: {
id: "chutes",
alias: "chutes",
format: "openai",
executor: "default",
baseUrl: "https://api.chutesai.com/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "Qwen2.5-72B-Instruct", name: "Qwen2.5 72B" }],
},

glhf: {
id: "glhf",
alias: "glhf",
format: "openai",
executor: "default",
baseUrl: "https://api.laf.run/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "deepseek-7b-chat", name: "DeepSeek 7B Chat" }],
},
Comment on lines +2249 to +2258

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The baseUrl for glhf is incorrect. The official GLHF OpenAI-compatible gateway is located at https://glhf.chat/api/openai/v1.

Suggested change
glhf: {
id: "glhf",
alias: "glhf",
format: "openai",
executor: "default",
baseUrl: "https://api.laf.run/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "deepseek-7b-chat", name: "DeepSeek 7B Chat" }],
},
glhf: {
id: "glhf",
alias: "glhf",
format: "openai",
executor: "default",
baseUrl: "https://glhf.chat/api/openai/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "deepseek-7b-chat", name: "DeepSeek 7B Chat" }],
},


huggingchat: {
id: "huggingchat",
alias: "huggingchat",
format: "openai",
executor: "default",
baseUrl: "https://huggingface.co/api/chat",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "meta-llama/llama-3-70b-instruct", name: "Llama 3 70B" }],
},
Comment on lines +2260 to +2269

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

HuggingChat does not provide a public OpenAI-compatible API at https://huggingface.co/api/chat. This URL is for the web interface's internal API and requires browser-based session cookies. Programmatic access should use the Hugging Face Inference API (already supported via the huggingface provider).


iflytek: {
id: "iflytek",
alias: "iflytek",
format: "openai",
executor: "default",
baseUrl: "https://spark-api.xf-yun.com/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "generalv3.5", name: "General V3.5" }],
},
Comment on lines +2271 to +2280

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The iFlytek Spark API is not natively OpenAI-compatible and uses a custom request/response structure. The URL provided (spark-api.xf-yun.com) is for the proprietary protocol. The OpenAI-compatible endpoint, if used, should be https://spark-api-open.xf-yun.com/v1/chat/completions.


inclusionai: {
id: "inclusionai",
alias: "inclusionai",
format: "openai",
executor: "default",
baseUrl: "https://api.inclusionai.tech/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "inclusion-model", name: "Inclusion Model" }],
},

sensenova: {
id: "sensenova",
alias: "sensenova",
format: "openai",
executor: "default",
baseUrl: "https://api.sensenova.cn/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "sensechat", name: "SenseChat" }],
},

sparkdesk: {
id: "sparkdesk",
alias: "sparkdesk",
format: "openai",
executor: "default",
baseUrl: "https://spark-api.xf-yun.com/v3.1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "general", name: "General" }],
},
Comment on lines +2304 to +2313

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Similar to iflytek, the sparkdesk entry uses a proprietary endpoint that is not compatible with the openai format and default executor.


stepfun: {
id: "stepfun",
alias: "stepfun",
format: "openai",
executor: "default",
baseUrl: "https://api.stepfun.com/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "step-1v", name: "Step 1V" }],
},

tencent: {
id: "tencent",
alias: "tencent",
format: "openai",
executor: "default",
baseUrl: "https://api.hunyuan.cloud.tencent.com/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "hunyuan-pro", name: "Hunyuan Pro" }],
},

doubao: {
id: "doubao",
alias: "doubao",
format: "openai",
executor: "default",
baseUrl: "https://ark.cn-beijing.volces.com/api/v3/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "doubao-pro-32k", name: "Doubao Pro 32K" }],
},
Comment on lines +2337 to +2346

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The doubao entry is a duplicate of the existing volcengine provider (lines 3488-3497). Both point to the same Volcengine Ark endpoint.


yi: {
id: "yi",
alias: "yi",
format: "openai",
executor: "default",
baseUrl: "https://api.lingyiwanwu.com/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "yi-large", name: "Yi Large" }],
},

modal: {
id: "modal",
alias: "modal",
format: "openai",
executor: "default",
baseUrl: "https://api.modal.ai/v1/chat/completions",
authType: "apikey",
authHeader: "bearer",
models: [{ id: "google/gemini-2.0-flash", name: "Gemini 2.0 Flash" }],
},
Comment on lines +2359 to +2368

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The baseUrl for modal is incorrect. Modal deployments use workspace-specific URLs (e.g., https://<workspace>--<app>.modal.run/v1). A static registry entry with a generic api.modal.ai URL will not work for user-hosted deployments.


blackbox: {
id: "blackbox",
alias: "bb",
Expand Down