feat:add cephalon provider (#7050)

* feat: add Cephalon provider and related assets

* add Cephalon logo image
* update models to include Cephalon's DeepSeek-R1
* add Cephalon provider configuration and API details
* include Cephalon translations in multiple languages
* update store to initialize Cephalon as a provider
* increment version for migration

* feat: update Cephalon provider configuration and assets

* add Cephalon logo image
* enable Cephalon provider in the store
* remove previous disabled configuration for Cephalon

* fix: update Cephalon provider model URL

* fix: update official website URL for Cephalon provider
This commit is contained in:
HzTTT 2025-06-12 12:02:03 +08:00 committed by GitHub
parent b142e5647e
commit a214dca6fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 48 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@ -2082,6 +2082,14 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
name: 'Qwen Plus', name: 'Qwen Plus',
group: 'Qwen' group: 'Qwen'
} }
],
cephalon: [
{
id: 'DeepSeek-R1',
provider: 'cephalon',
name: 'DeepSeek-R1满血版',
group: 'DeepSeek'
}
] ]
} }

View File

@ -44,6 +44,7 @@ import VoyageAIProviderLogo from '@renderer/assets/images/providers/voyageai.png
import XirangProviderLogo from '@renderer/assets/images/providers/xirang.png' import XirangProviderLogo from '@renderer/assets/images/providers/xirang.png'
import ZeroOneProviderLogo from '@renderer/assets/images/providers/zero-one.png' import ZeroOneProviderLogo from '@renderer/assets/images/providers/zero-one.png'
import ZhipuProviderLogo from '@renderer/assets/images/providers/zhipu.png' import ZhipuProviderLogo from '@renderer/assets/images/providers/zhipu.png'
import CephalonProviderLogo from '@renderer/assets/images/providers/cephalon.jpeg'
import { TOKENFLUX_HOST } from './constant' import { TOKENFLUX_HOST } from './constant'
@ -94,7 +95,8 @@ const PROVIDER_LOGO_MAP = {
alayanew: AlayaNewProviderLogo, alayanew: AlayaNewProviderLogo,
voyageai: VoyageAIProviderLogo, voyageai: VoyageAIProviderLogo,
qiniu: QiniuProviderLogo, qiniu: QiniuProviderLogo,
tokenflux: TokenFluxProviderLogo tokenflux: TokenFluxProviderLogo,
cephalon: CephalonProviderLogo
} as const } as const
export function getProviderLogo(providerId: string) { export function getProviderLogo(providerId: string) {
@ -612,5 +614,16 @@ export const PROVIDER_CONFIG = {
docs: `${TOKENFLUX_HOST}/docs`, docs: `${TOKENFLUX_HOST}/docs`,
models: `${TOKENFLUX_HOST}/models` models: `${TOKENFLUX_HOST}/models`
} }
},
cephalon: {
api: {
url: 'https://cephalon.cloud/user-center/v1/model'
},
websites: {
official: 'https://cephalon.cloud/share/register-landing?invite_id=jSdOYA',
apiKey: 'https://cephalon.cloud/api',
docs: 'https://cephalon.cloud/apitoken/1864244127731589124',
models: 'https://cephalon.cloud/model'
}
} }
} }

View File

@ -978,6 +978,7 @@
"azure-openai": "Azure OpenAI", "azure-openai": "Azure OpenAI",
"baichuan": "Baichuan", "baichuan": "Baichuan",
"baidu-cloud": "Baidu Cloud", "baidu-cloud": "Baidu Cloud",
"cephalon": "Cephalon",
"copilot": "GitHub Copilot", "copilot": "GitHub Copilot",
"dashscope": "Alibaba Cloud", "dashscope": "Alibaba Cloud",
"deepseek": "DeepSeek", "deepseek": "DeepSeek",

View File

@ -977,6 +977,7 @@
"azure-openai": "Azure OpenAI", "azure-openai": "Azure OpenAI",
"baichuan": "Baichuan", "baichuan": "Baichuan",
"baidu-cloud": "Baidu Cloud", "baidu-cloud": "Baidu Cloud",
"cephalon": "Cephalon",
"copilot": "GitHub Copilot", "copilot": "GitHub Copilot",
"dashscope": "Alibaba Cloud", "dashscope": "Alibaba Cloud",
"deepseek": "DeepSeek", "deepseek": "DeepSeek",

View File

@ -978,6 +978,7 @@
"azure-openai": "Azure OpenAI", "azure-openai": "Azure OpenAI",
"baichuan": "百川", "baichuan": "百川",
"baidu-cloud": "百度云千帆", "baidu-cloud": "百度云千帆",
"cephalon": "Cephalon",
"copilot": "GitHub Copilot", "copilot": "GitHub Copilot",
"dashscope": "阿里云百炼", "dashscope": "阿里云百炼",
"deepseek": "深度求索", "deepseek": "深度求索",

View File

@ -978,6 +978,7 @@
"azure-openai": "Azure OpenAI", "azure-openai": "Azure OpenAI",
"baichuan": "百川", "baichuan": "百川",
"baidu-cloud": "百度雲千帆", "baidu-cloud": "百度雲千帆",
"cephalon": "Cephalon",
"copilot": "GitHub Copilot", "copilot": "GitHub Copilot",
"dashscope": "阿里雲百鍊", "dashscope": "阿里雲百鍊",
"deepseek": "深度求索", "deepseek": "深度求索",

View File

@ -840,6 +840,7 @@
"azure-openai": "Azure OpenAI", "azure-openai": "Azure OpenAI",
"baichuan": "Παράκειμαι", "baichuan": "Παράκειμαι",
"baidu-cloud": "Baidu Cloud Qianfan", "baidu-cloud": "Baidu Cloud Qianfan",
"cephalon": "Cephalon",
"copilot": "GitHub Copilot", "copilot": "GitHub Copilot",
"dashscope": "AliCloud Bailian", "dashscope": "AliCloud Bailian",
"deepseek": "Βαθιά Αναζήτηση", "deepseek": "Βαθιά Αναζήτηση",

View File

@ -841,6 +841,7 @@
"azure-openai": "Azure OpenAI", "azure-openai": "Azure OpenAI",
"baichuan": "BaiChuan", "baichuan": "BaiChuan",
"baidu-cloud": "Baidu Nube Qiánfān", "baidu-cloud": "Baidu Nube Qiánfān",
"cephalon": "Cephalon",
"copilot": "GitHub Copiloto", "copilot": "GitHub Copiloto",
"dashscope": "Álibaba Nube BaiLiàn", "dashscope": "Álibaba Nube BaiLiàn",
"deepseek": "Profundo Buscar", "deepseek": "Profundo Buscar",

View File

@ -840,6 +840,7 @@
"azure-openai": "Azure OpenAI", "azure-openai": "Azure OpenAI",
"baichuan": "BaiChuan", "baichuan": "BaiChuan",
"baidu-cloud": "Baidu Cloud Qianfan", "baidu-cloud": "Baidu Cloud Qianfan",
"cephalon": "Cephalon",
"copilot": "GitHub Copilote", "copilot": "GitHub Copilote",
"dashscope": "AliCloud BaiLian", "dashscope": "AliCloud BaiLian",
"deepseek": "DeepSeek", "deepseek": "DeepSeek",

View File

@ -50,7 +50,7 @@ const persistedReducer = persistReducer(
{ {
key: 'cherry-studio', key: 'cherry-studio',
storage, storage,
version: 111, version: 112,
blacklist: ['runtime', 'messages', 'messageBlocks'], blacklist: ['runtime', 'messages', 'messageBlocks'],
migrate migrate
}, },

View File

@ -26,6 +26,16 @@ export interface LlmState {
} }
export const INITIAL_PROVIDERS: Provider[] = [ export const INITIAL_PROVIDERS: Provider[] = [
{
id: 'cephalon',
name: 'Cephalon',
type: 'openai',
apiKey: '',
apiHost: 'https://cephalon.cloud/user-center/v1/model',
models: SYSTEM_MODELS.cephalon,
isSystem: true,
enabled: true
},
{ {
id: 'silicon', id: 'silicon',
name: 'Silicon', name: 'Silicon',

View File

@ -1554,6 +1554,14 @@ const migrateConfig = {
// add selection_assistant_toggle and selection_assistant_select_text shortcuts after mini_window // add selection_assistant_toggle and selection_assistant_select_text shortcuts after mini_window
addShortcuts(state, ['selection_assistant_toggle', 'selection_assistant_select_text'], 'mini_window') addShortcuts(state, ['selection_assistant_toggle', 'selection_assistant_select_text'], 'mini_window')
return state
} catch (error) {
return state
}
},
'112': (state: RootState) => {
try {
addProvider(state, 'cephalon')
return state return state
} catch (error) { } catch (error) {
return state return state