File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import {
2929  Rwkv , 
3030  Spark , 
3131  Stability , 
32+   Stepfun , 
3233  Tongyi , 
3334  Wenxin , 
3435  Yi , 
@@ -40,9 +41,12 @@ interface ModelIconProps {
4041  size ?: number ; 
4142} 
4243
43- const  ModelIcon  =  memo < ModelIconProps > ( ( {  model,  size =  12  } )  =>  { 
44-   if  ( ! model )  return ; 
44+ const  ModelIcon  =  memo < ModelIconProps > ( ( {  model :  originModel ,  size =  12  } )  =>  { 
45+   if  ( ! originModel )  return ; 
4546
47+   // lower case the origin model so to better match more model id case 
48+   const  model  =  originModel . toLowerCase ( ) ; 
49+   
4650  // currently supported models, maybe not in its own provider 
4751  if  ( model . startsWith ( 'gpt' ) )  return  < OpenAI  size = { size }  /> ; 
4852  if  ( model . startsWith ( 'glm' )  ||  model . includes ( 'chatglm' ) )  return  < ChatGLM  size = { size }  /> ; 
@@ -65,6 +69,7 @@ const ModelIcon = memo<ModelIconProps>(({ model, size = 12 }) => {
6569  if  ( model . startsWith ( 'openchat' ) )  return  < OpenChat  size = { size }  /> ; 
6670  if  ( model . includes ( 'command' ) )  return  < Cohere  size = { size }  /> ; 
6771  if  ( model . includes ( 'dbrx' ) )  return  < Dbrx  size = { size }  /> ; 
72+   if  ( model . includes ( 'step' ) )  return  < Stepfun  size = { size }  /> ; 
6873  if  ( model . includes ( 'taichu' ) )  return  < AiMass  size = { size }  /> ; 
6974  if  ( model . includes ( '360gpt' ) )  return  < Ai360  size = { size }  /> ; 
7075
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments