MCPcopy Create free account
hub / github.com/AntiHub-Project/AntiHub / getModelIcon

Function getModelIcon

components/shared-pool-models.tsx:103–114  ·  view source on GitHub ↗
(modelName: string)

Source from the content-addressed store, hash-verified

101 };
102
103 const getModelIcon = (modelName: string) => {
104 const lowerName = modelName.toLowerCase();
105 if (lowerName.includes('gemini')) {
106 return <Gemini.Color className="size-5" />;
107 } else if (lowerName.includes('claude')) {
108 return <Claude.Color className="size-5" />;
109 } else if (lowerName.includes('gpt')) {
110 return <OpenAI className="size-5" />;
111 } else {
112 return <img src="/logo_light.png" alt="" className="size-5" />;
113 }
114 };
115
116 const formatResetTime = (time: string | null) => {
117 if (!time) return '无限制';

Callers 1

SharedPoolModelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected