diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 4255cb79d..e37650273 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -989,17 +989,6 @@ CONFIG_METADATA_2 = { "api_base": "http://127.0.0.1:1234/v1", "custom_headers": {}, }, - "ModelStack": { - "id": "modelstack", - "provider": "modelstack", - "type": "openai_chat_completion", - "provider_type": "chat_completion", - "enable": True, - "key": [], - "api_base": "https://modelstack.app/v1", - "timeout": 120, - "custom_headers": {}, - }, "Gemini_OpenAI_API": { "id": "google_gemini_openai", "provider": "google", diff --git a/dashboard/src/assets/images/provider_logos/modelstack.svg b/dashboard/src/assets/images/provider_logos/modelstack.svg deleted file mode 100644 index 940ac8799..000000000 --- a/dashboard/src/assets/images/provider_logos/modelstack.svg +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/dashboard/src/composables/useProviderSources.ts b/dashboard/src/composables/useProviderSources.ts index 514c372c7..07ac5aa15 100644 --- a/dashboard/src/composables/useProviderSources.ts +++ b/dashboard/src/composables/useProviderSources.ts @@ -94,29 +94,7 @@ export function useProviderSources(options: UseProviderSourcesOptions) { }) const displayedProviderSources = computed(() => { - const existing = filteredProviderSources.value || [] - const existingProviders = new Set(existing.map((src: any) => src.provider).filter(Boolean)) - const placeholders: any[] = [] - - if (providerTemplates.value && Object.keys(providerTemplates.value).length > 0) { - for (const [templateKey, template] of Object.entries(providerTemplates.value)) { - if (template.provider_type !== selectedProviderType.value) continue - if (!template.provider) continue - if (existingProviders.has(template.provider)) continue - - placeholders.push({ - id: template.id || templateKey, - provider: template.provider, - provider_type: template.provider_type, - type: template.type, - api_base: template.api_base || '', - templateKey, - isPlaceholder: true - }) - } - } - - return [...existing, ...placeholders] + return filteredProviderSources.value || [] }) const sourceProviders = computed(() => { diff --git a/dashboard/src/utils/providerUtils.js b/dashboard/src/utils/providerUtils.js index e9d8f21f1..917807fc3 100644 --- a/dashboard/src/utils/providerUtils.js +++ b/dashboard/src/utils/providerUtils.js @@ -32,7 +32,6 @@ export function getProviderIcon(type) { 'microsoft': 'https://registry.npmmirror.com/@lobehub/icons-static-svg/latest/files/icons/microsoft.svg', 'vllm': 'https://registry.npmmirror.com/@lobehub/icons-static-svg/latest/files/icons/vllm.svg', 'groq': 'https://registry.npmmirror.com/@lobehub/icons-static-svg/latest/files/icons/groq.svg', - "modelstack": new URL('@/assets/images/provider_logos/modelstack.svg', import.meta.url).href, "tokenpony": "https://tokenpony.cn/tokenpony-web/logo.png", "compshare": "https://compshare.cn/favicon.ico" };