feat: Add new provider Lanyun Cloud MaaS (#7033)

* Add files via upload

添加蓝耘logo图片

* 添加lanyun api及站点信息

* fix:修改引号

---------

Co-authored-by: 亢奋猫 <kangfenmao@qq.com>
This commit is contained in:
LANYUN 2025-06-16 10:04:03 +08:00 committed by kangfenmao
parent 5d169814f1
commit 8e7ad00ebc
10 changed files with 38 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -2179,7 +2179,8 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
name: 'DeepSeek-R1满血版',
group: 'DeepSeek'
}
]
],
lanyun: []
}
export const TEXT_TO_IMAGES_MODELS = [

View File

@ -22,6 +22,7 @@ import GroqProviderLogo from '@renderer/assets/images/providers/groq.png'
import HyperbolicProviderLogo from '@renderer/assets/images/providers/hyperbolic.png'
import InfiniProviderLogo from '@renderer/assets/images/providers/infini.png'
import JinaProviderLogo from '@renderer/assets/images/providers/jina.png'
import LanyunProviderLogo from '@renderer/assets/images/providers/lanyun.png'
import LMStudioProviderLogo from '@renderer/assets/images/providers/lmstudio.png'
import MinimaxProviderLogo from '@renderer/assets/images/providers/minimax.png'
import MistralProviderLogo from '@renderer/assets/images/providers/mistral.png'
@ -98,7 +99,8 @@ const PROVIDER_LOGO_MAP = {
voyageai: VoyageAIProviderLogo,
qiniu: QiniuProviderLogo,
tokenflux: TokenFluxProviderLogo,
cephalon: CephalonProviderLogo
cephalon: CephalonProviderLogo,
lanyun: LanyunProviderLogo
} as const
export function getProviderLogo(providerId: string) {
@ -638,5 +640,16 @@ export const PROVIDER_CONFIG = {
docs: 'https://cephalon.cloud/apitoken/1864244127731589124',
models: 'https://cephalon.cloud/model'
}
},
lanyun: {
api: {
url: 'https://maas-api.lanyun.net'
},
websites: {
official: 'https://lanyun.net',
apiKey: 'https://maas.lanyun.net/api/#/system/apiKey',
docs: 'https://archive.lanyun.net/maas/doc/',
models: 'https://maas.lanyun.net/api/#/model/modelSquare'
}
}
}

View File

@ -1019,7 +1019,8 @@
"voyageai": "Voyage AI",
"qiniu": "Qiniu AI",
"tokenflux": "TokenFlux",
"302ai": "302.AI"
"302ai": "302.AI",
"lanyun": "LANYUN"
},
"restore": {
"confirm": "Are you sure you want to restore data?",

View File

@ -1019,7 +1019,8 @@
"qiniu": "七牛云 AI 推理",
"tokenflux": "TokenFlux",
"302ai": "302.AI",
"cephalon": "Cephalon"
"cephalon": "Cephalon",
"lanyun": "LANYUN"
},
"restore": {
"confirm": "データを復元しますか?",

View File

@ -1019,7 +1019,8 @@
"voyageai": "Voyage AI",
"qiniu": "Qiniu AI",
"tokenflux": "TokenFlux",
"302ai": "302.AI"
"302ai": "302.AI",
"lanyun": "LANYUN"
},
"restore": {
"confirm": "Вы уверены, что хотите восстановить данные?",

View File

@ -1019,7 +1019,8 @@
"voyageai": "Voyage AI",
"qiniu": "七牛云 AI 推理",
"tokenflux": "TokenFlux",
"302ai": "302.AI"
"302ai": "302.AI",
"lanyun": "蓝耘科技"
},
"restore": {
"confirm": "确定要恢复数据吗?",

View File

@ -1019,7 +1019,8 @@
"voyageai": "Voyage AI",
"qiniu": "七牛雲 AI 推理",
"tokenflux": "TokenFlux",
"302ai": "302.AI"
"302ai": "302.AI",
"lanyun": "藍耘"
},
"restore": {
"confirm": "確定要復原資料嗎?",

View File

@ -146,6 +146,16 @@ export const INITIAL_PROVIDERS: Provider[] = [
isSystem: true,
enabled: false
},
{
id: 'lanyun',
name: 'LANYUN',
type: 'openai',
apiKey: '',
apiHost: 'https://maas-api.lanyun.net',
models: SYSTEM_MODELS.lanyun,
isSystem: true,
enabled: false
},
{
id: 'openrouter',
name: 'OpenRouter',

View File

@ -1563,8 +1563,10 @@ const migrateConfig = {
try {
addProvider(state, 'cephalon')
addProvider(state, '302ai')
addProvider(state, 'lanyun')
state.llm.providers = moveProvider(state.llm.providers, 'cephalon', 13)
state.llm.providers = moveProvider(state.llm.providers, '302ai', 14)
state.llm.providers = moveProvider(state.llm.providers, 'lanyun', 15)
return state
} catch (error) {
return state