refactor: Update Tencent Cloud TI provider identifier and assets

This commit is contained in:
kangfenmao 2025-03-03 17:48:17 +08:00
parent ae995182b2
commit e8bfb2b49b
10 changed files with 15 additions and 15 deletions

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -1729,16 +1729,16 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
}
],
xirang: [],
'tencent-cloud': [
'tencent-cloud-ti': [
{
id: 'deepseek-r1',
provider: 'tencent-cloud',
provider: 'tencent-cloud-ti',
name: 'DeepSeek R1',
group: 'DeepSeek'
},
{
id: 'deepseek-v3',
provider: 'tencent-cloud',
provider: 'tencent-cloud-ti',
name: 'DeepSeek V3',
group: 'DeepSeek'
}

View File

@ -33,7 +33,7 @@ import PerplexityProviderLogo from '@renderer/assets/images/providers/perplexity
import PPIOProviderLogo from '@renderer/assets/images/providers/ppio.png'
import SiliconFlowProviderLogo from '@renderer/assets/images/providers/silicon.png'
import StepProviderLogo from '@renderer/assets/images/providers/step.png'
import TencentCloudProviderLogo from '@renderer/assets/images/providers/tencent-cloud.png'
import TencentCloudProviderLogo from '@renderer/assets/images/providers/tencent-cloud-ti.png'
import TogetherProviderLogo from '@renderer/assets/images/providers/together.png'
import BytedanceProviderLogo from '@renderer/assets/images/providers/volcengine.png'
import XirangProviderLogo from '@renderer/assets/images/providers/xirang.png'
@ -121,7 +121,7 @@ export function getProviderLogo(providerId: string) {
return InfiniProviderLogo
case 'o3':
return O3ProviderLogo
case 'tencent-cloud':
case 'tencent-cloud-ti':
return TencentCloudProviderLogo
default:
return undefined
@ -562,7 +562,7 @@ export const PROVIDER_CONFIG = {
models: 'https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Fm2vrveyu'
}
},
'tentent-cloud': {
'tencent-cloud-ti': {
api: {
url: 'https://api.lkeap.cloud.tencent.com'
},

View File

@ -563,7 +563,7 @@
"zhinao": "360AI",
"zhipu": "ZHIPU AI",
"xirang": "State Cloud Xirang",
"tencent-cloud": "Tencent Cloud TI"
"tencent-cloud-ti": "Tencent Cloud TI"
},
"settings": {
"about": "About & Feedback",

View File

@ -563,7 +563,7 @@
"zhinao": "360智脳",
"zhipu": "智譜AI",
"xirang": "天翼クラウド 息壤",
"tencent-cloud": "Tencent Cloud TI"
"tencent-cloud-ti": "Tencent Cloud TI"
},
"settings": {
"about": "について",

View File

@ -563,7 +563,7 @@
"zhinao": "360AI",
"zhipu": "ZHIPU AI",
"xirang": "State Cloud Xirang",
"tencent-cloud": "Tencent Cloud TI"
"tencent-cloud-ti": "Tencent Cloud TI"
},
"settings": {
"about": "О программе и обратная связь",

View File

@ -563,7 +563,7 @@
"zhinao": "360智脑",
"zhipu": "智谱AI",
"xirang": "天翼云息壤",
"tencent-cloud": "腾讯云TI"
"tencent-cloud-ti": "腾讯云TI"
},
"settings": {
"about": "关于我们",

View File

@ -563,7 +563,7 @@
"zhinao": "360智腦",
"zhipu": "智譜AI",
"xirang": "天翼雲息壤",
"tencent-cloud": "騰訊雲TI"
"tencent-cloud-ti": "騰訊雲TI"
},
"settings": {
"about": "關於與回饋",

View File

@ -418,12 +418,12 @@ const initialState: LlmState = {
enabled: false
},
{
id: 'tencent-cloud',
id: 'tencent-cloud-ti',
name: 'Tencent Cloud TI',
type: 'openai',
apiKey: '',
apiHost: 'https://api.lkeap.cloud.tencent.com',
models: SYSTEM_MODELS['tencent-cloud'],
models: SYSTEM_MODELS['tencent-cloud-ti'],
isSystem: true,
enabled: false
}

View File

@ -1205,12 +1205,12 @@ const migrateConfig = {
},
'76': (state: RootState) => {
state.llm.providers.push({
id: 'tencent-cloud',
id: 'tencent-cloud-ti',
name: 'Tencent Cloud TI',
type: 'openai',
apiKey: '',
apiHost: 'https://api.lkeap.cloud.tencent.com',
models: SYSTEM_MODELS['tencent-cloud'],
models: SYSTEM_MODELS['tencent-cloud-ti'],
isSystem: true,
enabled: false
})