mirror of
https://github.com/Mintplex-Labs/anything-llm
synced 2026-04-25 17:15:37 +02:00
add provider to map
This commit is contained in:
@@ -17,6 +17,7 @@ import IBM from "@lobehub/icons/es/IBM/components/Mono";
|
||||
import Bytedance from "@lobehub/icons/es/ByteDance/components/Mono";
|
||||
import Kimi from "@lobehub/icons/es/Kimi/components/Mono";
|
||||
import Snowflake from "@lobehub/icons/es/Snowflake/components/Mono";
|
||||
import Liquid from "@lobehub/icons/es/Liquid/components/Mono";
|
||||
|
||||
// Direct provider key -> icon mapping for exact matches
|
||||
const providerIcons = {
|
||||
@@ -37,6 +38,7 @@ const providerIcons = {
|
||||
ibm: IBM,
|
||||
bytedance: Bytedance,
|
||||
kimi: Kimi,
|
||||
liquid: Liquid,
|
||||
};
|
||||
|
||||
// Pattern matching rules: regex pattern -> icon component
|
||||
@@ -64,6 +66,7 @@ const modelPatterns = [
|
||||
{ pattern: /^seed/i, icon: Bytedance },
|
||||
{ pattern: /^kimi/i, icon: Kimi },
|
||||
{ pattern: /^snowflake/i, icon: Snowflake },
|
||||
{ pattern: /^lfm/i, icon: Liquid },
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user