- Added BytePlus Provider

This commit is contained in:
decolua
2026-04-25 17:00:39 +07:00
parent 0b8bed5793
commit 14ff69bf90
9 changed files with 29 additions and 6 deletions

View File

@@ -344,6 +344,16 @@ export const PROVIDER_MODELS = {
{ id: "GLM-4.7", name: "GLM-4.7" },
{ id: "DeepSeek-V3.2", name: "DeepSeek-V3.2" },
],
byteplus: [
{ id: "doubao-seed-2.0-pro", name: "Doubao Seed 2.0 Pro" },
{ id: "doubao-seed-2.0-code", name: "Doubao Seed 2.0 Code" },
{ id: "doubao-seed-2.0-lite", name: "Doubao Seed 2.0 Lite" },
{ id: "doubao-seed-code", name: "Doubao Seed Code" },
{ id: "glm-5.1", name: "GLM-5.1" },
{ id: "glm-4.7", name: "GLM-4.7" },
{ id: "kimi-k2.5", name: "Kimi-K2.5" },
{ id: "gpt-oss-120b", name: "GPT-OSS-120B" },
],
deepseek: [
{ id: "deepseek-v4-flash", name: "DeepSeek V4 Flash" },
{ id: "deepseek-chat", name: "DeepSeek V3.2 Chat" },

View File

@@ -161,6 +161,11 @@ export const PROVIDERS = {
format: "openai",
headers: {}
},
byteplus: {
baseUrl: "https://ark.ap-southeast.bytepluses.com/api/coding/v3/chat/completions",
format: "openai",
headers: {}
},
github: {
baseUrl: "https://api.githubcopilot.com/chat/completions",
responsesUrl: "https://api.githubcopilot.com/responses",

View File

@@ -51,6 +51,8 @@ const ALIAS_TO_PROVIDER_ID = {
chutes: "chutes",
ark: "volcengine-ark",
"volcengine-ark": "volcengine-ark",
byteplus: "byteplus",
bpm: "byteplus",
cursor: "cursor",
vx: "vertex",
vertex: "vertex",