feat: add huggingface provider and new model logos

- Add HuggingFace as AI provider with model fetching
- Add Poolside, Tencent, and HuggingFace logo components
- Update model mappings for new providers
- Add @ai-sdk/huggingface dependency
- Bump longcat-ai-sdk-provider to 0.0.5
This commit is contained in:
Zoe
2026-05-11 17:43:02 -05:00
parent a0f2e89154
commit a1aeed51e2
8 changed files with 197 additions and 9 deletions
+13 -2
View File
@@ -52,6 +52,9 @@ import {
LogoInflection,
LogoVllm,
LogoClosedRouter,
LogoPoolside,
LogoTencent,
LogoHuggingFace,
} from '#components';
import { markRaw } from 'vue';
@@ -161,7 +164,7 @@ const MODEL_MAPPINGS: ModelConfig[] = [
},
{
Icon: markRaw(LogoZAI),
keywords: [/^glm-4/, /\/glm-4/, /zai-/, /-glm-4/, /glm-\d/]
keywords: [/zai-/, /(^|\/|-)?glm-?\d/]
},
{
Icon: markRaw(LogoGLMV),
@@ -314,6 +317,14 @@ const MODEL_MAPPINGS: ModelConfig[] = [
{
Icon: markRaw(LogoInflection),
keywords: [/inflection-/, /^inflection\//]
},
{
Icon: markRaw(LogoPoolside),
keywords: [/poolside\//, /laguna/]
},
{
Icon: markRaw(LogoTencent),
keywords: [/tencent\//, /hy/],
}
];
@@ -324,7 +335,7 @@ export const providerIcons: Record<string, any | null> = {
azure: null,
anthropic: markRaw(LogoAnthropic),
cohere: markRaw(LogoCohere),
huggingface: null,
huggingface: markRaw(LogoHuggingFace),
openrouter: markRaw(LogoOpenrouter),
cerebras: markRaw(LogoCerebras),
longcat: markRaw(LogoLongCat),