feat(web): add all supported provider client types to model selector

This commit is contained in:
BBQ
2026-02-13 18:02:30 +08:00
parent b3775f57a2
commit 243ea6f034
2 changed files with 8 additions and 2 deletions
@@ -156,7 +156,10 @@ import { useMutation, useQueryCache } from '@pinia/colada'
import { postProviders } from '@memoh/sdk'
import type { ProvidersClientType } from '@memoh/sdk'
const CLIENT_TYPES: ProvidersClientType[] = ['openai', 'openai-compat', 'anthropic', 'google', 'ollama']
const CLIENT_TYPES: ProvidersClientType[] = [
'openai', 'openai-compat', 'anthropic', 'google',
'azure', 'bedrock', 'mistral', 'xai', 'ollama', 'dashscope',
]
const open = defineModel<boolean>('open')
+4 -1
View File
@@ -32,7 +32,10 @@ import type { ProvidersGetResponse, ProvidersClientType } from '@memoh/sdk'
import AddProvider from '@/components/add-provider/index.vue'
import { useQuery } from '@pinia/colada'
const CLIENT_TYPES: ProvidersClientType[] = ['openai', 'openai-compat', 'anthropic', 'google', 'ollama']
const CLIENT_TYPES: ProvidersClientType[] = [
'openai', 'openai-compat', 'anthropic', 'google',
'azure', 'bedrock', 'mistral', 'xai', 'ollama', 'dashscope',
]
const filterProvider = ref('')
const { data: providerData } = useQuery({