File tree Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ watchEffect(() => {
52
52
</template >
53
53
<template v-else >
54
54
<div class =" grid gap-4 grid-cols-2 mb-4" >
55
- <!-- SiliconFlow configuration card (if not configured) -->
56
55
<Card v-for =" provider in providersStore.list" :key =" provider.id" class =" relative gap-2" >
57
56
<CardHeader >
58
57
<div class =" flex items-center justify-between" >
@@ -65,11 +64,11 @@ watchEffect(() => {
65
64
<CardContent >
66
65
<div class =" text-sm text-muted-foreground" >
67
66
<p >
68
- {{ t('siliconFlowDescription1 ') }}
69
- <a href =" https://www.siliconflow.cn " target =" _blank" class =" text-blue-900 dark:text-blue-200 hover:underline" >
70
- {{ t('siliconFlow') }}
67
+ {{ t('description1 ') }}
68
+ <a : href =" provider.homepage " target =" _blank" class =" text-blue-900 dark:text-blue-200 hover:underline" >
69
+ {{ provider.name }}
71
70
</a >
72
- {{ t('siliconFlowDescription2 ') }}
71
+ {{ t('description2 ') }}
73
72
</p >
74
73
</div >
75
74
</CardContent >
@@ -130,17 +129,17 @@ en-US:
130
129
loadingKeys : Loading...
131
130
noKeysAvailable : No providers configured
132
131
addNewKey : Add Provider
133
- siliconFlowDescription1 : Purchase and configure API through
134
- siliconFlowDescription2 : ' '
132
+ description1 : Purchase and configure API through
133
+ description2 : ' '
135
134
configure : Configure {0}
136
135
selectKey : Provider
137
136
138
137
zh-CN :
139
138
loadingKeys : 加载中
140
139
noKeysAvailable : 未配置提供商
141
140
addNewKey : 添加提供商
142
- siliconFlowDescription1 : 通过
143
- siliconFlowDescription2 : 购买和配置 API
141
+ description1 : 通过
142
+ description2 : 购买和配置 API
144
143
configure : 配置 {0}
145
144
selectKey : 提供商
146
145
</i18n >
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ onMounted(() => {
90
90
<div class =" text-sm text-muted-foreground" >
91
91
<p >
92
92
{{ t('description1') }}
93
- <a href =" https://www.siliconflow.cn " target =" _blank" class =" text-blue-900 dark:text-blue-200 hover:underline" >
93
+ <a : href =" provider.homepage " target =" _blank" class =" text-blue-900 dark:text-blue-200 hover:underline" >
94
94
{{ provider.name }}
95
95
</a >
96
96
{{ t('description2') }}
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export const useDeepSeekProvider = createSharedComposable((): Provider => {
25
25
get name ( ) {
26
26
return t ( 'providerName' )
27
27
} ,
28
+ homepage : 'https://www.deepseek.com/' ,
28
29
29
30
get user ( ) {
30
31
return user . value
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export interface ProviderVerificationInfo {
18
18
export interface Provider {
19
19
readonly id : string
20
20
readonly name : string
21
+ readonly homepage : string
21
22
22
23
readonly user : undefined | null | ProviderUserInfo
23
24
readonly refreshUser : ( ) => Promise < void >
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export const useSiliconFlowProvider = createSharedComposable((): Provider => {
37
37
get name ( ) {
38
38
return t ( 'providerName' )
39
39
} ,
40
+ homepage : 'https://www.siliconflow.cn/' ,
40
41
41
42
get user ( ) {
42
43
return user . value
You can’t perform that action at this time.
0 commit comments