Feat/Add ByteDance Ark provider (#226)

This commit is contained in:
Lingxuan Zuo
2026-02-28 16:44:58 +08:00
committed by GitHub
Unverified
parent 1b45d891c3
commit 8cda9235b3
6 changed files with 62 additions and 9 deletions

View File

@@ -0,0 +1,5 @@
<svg fill="#191919" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<title>ByteDance Ark</title>
<path d="M12 1.5 2.75 22.5h3.57l1.87-4.36h7.62l-1.45-3.25h-4.76L12 9.47l5.72 13.03h3.53Z"/>
<path d="M14.96 9.1h3.48L21.25 2.8h-3.5Z"/>
</svg>

After

Width:  |  Height:  |  Size: 265 B

View File

@@ -2,6 +2,7 @@ import anthropic from './anthropic.svg';
import openai from './openai.svg';
import google from './google.svg';
import openrouter from './openrouter.svg';
import ark from './ark.svg';
import moonshot from './moonshot.svg';
import siliconflow from './siliconflow.svg';
import minimaxPortal from './minimax.svg';
@@ -14,6 +15,7 @@ export const providerIcons: Record<string, string> = {
openai,
google,
openrouter,
ark,
moonshot,
siliconflow,
'minimax-portal': minimaxPortal,

View File

@@ -10,6 +10,7 @@ export const PROVIDER_TYPES = [
'openai',
'google',
'openrouter',
'ark',
'moonshot',
'siliconflow',
'minimax-portal',
@@ -68,6 +69,7 @@ export const PROVIDER_TYPE_INFO: ProviderTypeInfo[] = [
{ id: 'openai', name: 'OpenAI', icon: '💚', placeholder: 'sk-proj-...', model: 'GPT', requiresApiKey: true },
{ id: 'google', name: 'Google', icon: '🔷', placeholder: 'AIza...', model: 'Gemini', requiresApiKey: true },
{ id: 'openrouter', name: 'OpenRouter', icon: '🌐', placeholder: 'sk-or-v1-...', model: 'Multi-Model', requiresApiKey: true },
{ id: 'ark', name: 'ByteDance Ark', icon: 'A', placeholder: 'your-ark-api-key', model: 'Doubao', requiresApiKey: true, defaultBaseUrl: 'https://ark.cn-beijing.volces.com/api/v3', showBaseUrl: true, showModelId: true, modelIdPlaceholder: 'ep-20260228000000-xxxxx' },
{ id: 'moonshot', name: 'Moonshot (CN)', icon: '🌙', placeholder: 'sk-...', model: 'Kimi', requiresApiKey: true, defaultBaseUrl: 'https://api.moonshot.cn/v1', defaultModelId: 'kimi-k2.5' },
{ id: 'siliconflow', name: 'SiliconFlow (CN)', icon: '🌊', placeholder: 'sk-...', model: 'Multi-Model', requiresApiKey: true, defaultBaseUrl: 'https://api.siliconflow.cn/v1', defaultModelId: 'Pro/moonshotai/Kimi-K2.5' },
{ id: 'minimax-portal', name: 'MiniMax (Global)', icon: '☁️', placeholder: 'sk-...', model: 'MiniMax', requiresApiKey: false, isOAuth: true, supportsApiKey: true, defaultModelId: 'MiniMax-M2.5' },