feat: add new model provider BurnCloud

This commit is contained in:
Wei 2025-05-19 19:01:23 +08:00 committed by 亢奋猫
parent 5cf0a43b2c
commit 2d7caf9fc5
14 changed files with 59 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -419,6 +419,31 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
group: 'Qwen'
}
],
burncloud: [
{ id: 'claude-3-7-sonnet-20250219-thinking', provider: 'burncloud', name: 'Claude 3.7 thinking', group: 'Claude' },
{ id: 'claude-3-7-sonnet-20250219', provider: 'burncloud', name: 'Claude 3.7 Sonnet', group: 'Claude 3.7' },
{ id: 'claude-3-5-sonnet-20241022', provider: 'burncloud', name: 'Claude 3.5 Sonnet', group: 'Claude 3.5' },
{ id: 'claude-3-5-haiku-20241022', provider: 'burncloud', name: 'Claude 3.5 Haiku', group: 'Claude 3.5' },
{ id: 'gpt-4.5-preview', provider: 'burncloud', name: 'gpt-4.5-preview', group: 'gpt-4.5' },
{ id: 'gpt-4o', provider: 'burncloud', name: 'GPT-4o', group: 'GPT 4o' },
{ id: 'gpt-4o-mini', provider: 'burncloud', name: 'GPT-4o-mini', group: 'GPT 4o' },
{ id: 'o3', provider: 'burncloud', name: 'GPT-o1-mini', group: 'o1' },
{ id: 'o3-mini', provider: 'burncloud', name: 'GPT-o1-preview', group: 'o1' },
{ id: 'o1-mini', provider: 'burncloud', name: 'GPT-o1-mini', group: 'o1' },
{ id: 'gemini-2.5-pro-preview-03-25', provider: 'burncloud', name: 'Gemini 2.5 Preview', group: 'Geminit 2.5' },
{ id: 'gemini-2.5-pro-exp-03-25', provider: 'burncloud', name: 'Gemini 2.5 Pro Exp', group: 'Geminit 2.5' },
{ id: 'gemini-2.0-flash-lite', provider: 'burncloud', name: 'Gemini 2.0 Flash Lite', group: 'Geminit 2.0' },
{ id: 'gemini-2.0-flash-exp', provider: 'burncloud', name: 'Gemini 2.0 Flash Exp', group: 'Geminit 2.0' },
{ id: 'gemini-2.0-flash', provider: 'burncloud', name: 'Gemini 2.0 Flash', group: 'Geminit 2.0' },
{ id: 'deepseek-r1', name: 'DeepSeek-R1', provider: 'burncloud', group: 'deepseek-ai' },
{ id: 'deepseek-v3', name: 'DeepSeek-V3', provider: 'burncloud', group: 'deepseek-ai' }
],
o3: [
{
id: 'gpt-4o',

View File

@ -2,6 +2,7 @@ import ZhinaoProviderLogo from '@renderer/assets/images/models/360.png'
import HunyuanProviderLogo from '@renderer/assets/images/models/hunyuan.png'
import AzureProviderLogo from '@renderer/assets/images/models/microsoft.png'
import AiHubMixProviderLogo from '@renderer/assets/images/providers/aihubmix.webp'
import BurnCloudProviderLogo from '@renderer/assets/images/providers/burncloud.png'
import AlayaNewProviderLogo from '@renderer/assets/images/providers/alayanew.webp'
import AnthropicProviderLogo from '@renderer/assets/images/providers/anthropic.png'
import BaichuanProviderLogo from '@renderer/assets/images/providers/baichuan.png'
@ -61,6 +62,7 @@ const PROVIDER_LOGO_MAP = {
xirang: XirangProviderLogo,
anthropic: AnthropicProviderLogo,
aihubmix: AiHubMixProviderLogo,
burncloud: BurnCloudProviderLogo,
gemini: GoogleProviderLogo,
stepfun: StepProviderLogo,
doubao: BytedanceProviderLogo,
@ -121,6 +123,17 @@ export const PROVIDER_CONFIG = {
models: 'https://docs.o3.fan/models'
}
},
burncloud: {
api: {
url: 'https://ai.burncloud.com'
},
websites: {
official: 'https://ai.burncloud.com/',
apiKey: 'https://ai.burncloud.com/token',
docs: 'https://ai.burncloud.com/docs',
models: 'https://ai.burncloud.com/pricing'
}
},
ppio: {
api: {
url: 'https://api.ppinfra.com/v3/openai'

View File

@ -879,6 +879,7 @@
},
"provider": {
"aihubmix": "AiHubMix",
"burncloud": "BurnCloud",
"alayanew": "Alaya NeW",
"anthropic": "Anthropic",
"azure-openai": "Azure OpenAI",

View File

@ -879,6 +879,7 @@
},
"provider": {
"aihubmix": "AiHubMix",
"burncloud": "BurnCloud",
"alayanew": "Alaya NeW",
"anthropic": "Anthropic",
"azure-openai": "Azure OpenAI",

View File

@ -879,6 +879,7 @@
},
"provider": {
"aihubmix": "AiHubMix",
"burncloud": "BurnCloud",
"alayanew": "Alaya NeW",
"anthropic": "Anthropic",
"azure-openai": "Azure OpenAI",

View File

@ -879,6 +879,7 @@
},
"provider": {
"aihubmix": "AiHubMix",
"burncloud": "BurnCloud",
"alayanew": "Alaya NeW",
"anthropic": "Anthropic",
"azure-openai": "Azure OpenAI",

View File

@ -879,6 +879,7 @@
},
"provider": {
"aihubmix": "AiHubMix",
"burncloud": "BurnCloud",
"alayanew": "Alaya NeW",
"anthropic": "Anthropic",
"azure-openai": "Azure OpenAI",

View File

@ -835,6 +835,7 @@
},
"provider": {
"aihubmix": "AiHubMix",
"burncloud": "BurnCloud",
"alayanew": "Alaya NeW",
"anthropic": "Anthropic",
"azure-openai": "Azure OpenAI",

View File

@ -836,6 +836,7 @@
},
"provider": {
"aihubmix": "AiHubMix",
"burncloud": "BurnCloud",
"alayanew": "Alaya NeW",
"anthropic": "Antropológico",
"azure-openai": "Azure OpenAI",

View File

@ -835,6 +835,7 @@
},
"provider": {
"aihubmix": "AiHubMix",
"burncloud": "BurnCloud",
"alayanew": "Alaya NeW",
"anthropic": "Anthropic",
"azure-openai": "Azure OpenAI",

View File

@ -837,6 +837,7 @@
},
"provider": {
"aihubmix": "AiHubMix",
"burncloud": "BurnCloud",
"alayanew": "Alaya NeW",
"anthropic": "Antropológico",
"azure-openai": "Azure OpenAI",

View File

@ -46,6 +46,16 @@ export const INITIAL_PROVIDERS: Provider[] = [
isSystem: true,
enabled: false
},
{
id: 'burncloud',
name: 'BurnCloud',
type: 'openai',
apiKey: '',
apiHost: 'https://ai.burncloud.com',
models: SYSTEM_MODELS.burncloud,
isSystem: true,
enabled: false
},
{
id: 'ocoolai',
name: 'ocoolAI',

View File

@ -839,6 +839,7 @@ const migrateConfig = {
},
'66': (state: RootState) => {
try {
addProvider(state, 'burncloud')
addProvider(state, 'gitee-ai')
addProvider(state, 'ppio')
addMiniApp(state, 'aistudio')
@ -1025,6 +1026,7 @@ const migrateConfig = {
},
'78': (state: RootState) => {
try {
state.llm.providers = moveProvider(state.llm.providers, 'burncloud', 9)
state.llm.providers = moveProvider(state.llm.providers, 'ppio', 9)
state.llm.providers = moveProvider(state.llm.providers, 'infini', 10)
removeMiniAppIconsFromState(state)