Skip to content

Commit 73e4a65

Browse files
committed
fix: provider homepage url
1 parent a311be4 commit 73e4a65

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

ui/src/components/KeySelector.vue

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ watchEffect(() => {
5252
</template>
5353
<template v-else>
5454
<div class="grid gap-4 grid-cols-2 mb-4">
55-
<!-- SiliconFlow configuration card (if not configured) -->
5655
<Card v-for="provider in providersStore.list" :key="provider.id" class="relative gap-2">
5756
<CardHeader>
5857
<div class="flex items-center justify-between">
@@ -65,11 +64,11 @@ watchEffect(() => {
6564
<CardContent>
6665
<div class="text-sm text-muted-foreground">
6766
<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 }}
7170
</a>
72-
{{ t('siliconFlowDescription2') }}
71+
{{ t('description2') }}
7372
</p>
7473
</div>
7574
</CardContent>
@@ -130,17 +129,17 @@ en-US:
130129
loadingKeys: Loading...
131130
noKeysAvailable: No providers configured
132131
addNewKey: Add Provider
133-
siliconFlowDescription1: Purchase and configure API through
134-
siliconFlowDescription2: ' '
132+
description1: Purchase and configure API through
133+
description2: ' '
135134
configure: Configure {0}
136135
selectKey: Provider
137136
138137
zh-CN:
139138
loadingKeys: 加载中
140139
noKeysAvailable: 未配置提供商
141140
addNewKey: 添加提供商
142-
siliconFlowDescription1: 通过
143-
siliconFlowDescription2: 购买和配置 API
141+
description1: 通过
142+
description2: 购买和配置 API
144143
configure: 配置 {0}
145144
selectKey: 提供商
146145
</i18n>

ui/src/components/KeysSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ onMounted(() => {
9090
<div class="text-sm text-muted-foreground">
9191
<p>
9292
{{ 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">
9494
{{ provider.name }}
9595
</a>
9696
{{ t('description2') }}

ui/src/lib/providers/deepseek.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const useDeepSeekProvider = createSharedComposable((): Provider => {
2525
get name() {
2626
return t('providerName')
2727
},
28+
homepage: 'https://www.deepseek.com/',
2829

2930
get user() {
3031
return user.value

ui/src/lib/providers/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export interface ProviderVerificationInfo {
1818
export interface Provider {
1919
readonly id: string
2020
readonly name: string
21+
readonly homepage: string
2122

2223
readonly user: undefined | null | ProviderUserInfo
2324
readonly refreshUser: () => Promise<void>

ui/src/lib/providers/siliconflow.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const useSiliconFlowProvider = createSharedComposable((): Provider => {
3737
get name() {
3838
return t('providerName')
3939
},
40+
homepage: 'https://www.siliconflow.cn/',
4041

4142
get user() {
4243
return user.value

0 commit comments

Comments
 (0)