fix: model base url input & deepseek default base url (#300)

This commit is contained in:
Typed SIGTERM
2025-07-19 13:34:05 +08:00
committed by GitHub
parent 3e665b25a7
commit 96dd393a81
3 changed files with 5 additions and 4 deletions
+1 -3
View File
@@ -1,3 +1 @@
import { registerSW } from 'virtual:pwa-register'
export { registerSW }
export { registerSW } from 'virtual:pwa-register'
@@ -15,7 +15,7 @@ const modelValue = defineModel<string>({ required: true })
<FieldInput
v-model="modelValue"
:label="props.label || 'Base URL'"
:description="props.description || 'Custom base URL (optional)'"
:description="props.description || (props.required ? 'Base URL' : 'Custom base URL (optional)')"
:placeholder="props.placeholder"
:required="props.required"
type="text"
@@ -867,6 +867,9 @@ export const useProvidersStore = defineStore('providers', () => {
descriptionKey: 'settings.pages.providers.provider.deepseek.description',
description: 'deepseek.com',
iconColor: 'i-lobe-icons:deepseek',
defaultOptions: () => ({
baseUrl: 'https://api.deepseek.com/',
}),
createProvider: config => createDeepSeek((config.apiKey as string).trim(), (config.baseUrl as string).trim()),
capabilities: {
listModels: async (config) => {