fix: model base url input & deepseek default base url (#300)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user