Skip to content

Commit 30c77e7

Browse files
author
Kerwin
committed
fix: keys miss chat model
1 parent ab07c60 commit 30c77e7

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

service/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ router.post('/session', async (req, res) => {
602602
model: config.apiModel,
603603
title: config.siteConfig.siteTitle,
604604
chatModels,
605+
allChatModels: chatModelOptions,
605606
},
606607
})
607608
}

src/components/common/Setting/Keys.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ onMounted(async () => {
256256
style="width: 100%"
257257
multiple
258258
:value="keyConfig.chatModels"
259-
:options="authStore.session?.chatModels"
259+
:options="authStore.session?.allChatModels"
260260
@update-value="value => keyConfig.chatModels = value"
261261
/>
262262
</div>

src/store/modules/auth/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ interface SessionResponse {
1616
key: string
1717
value: string
1818
}[]
19+
allChatModels: {
20+
label: string
21+
key: string
22+
value: string
23+
}[]
1924
}
2025

2126
export interface AuthState {

0 commit comments

Comments
 (0)