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 {
29
29
Rwkv ,
30
30
Spark ,
31
31
Stability ,
32
+ Stepfun ,
32
33
Tongyi ,
33
34
Wenxin ,
34
35
Yi ,
@@ -40,9 +41,12 @@ interface ModelIconProps {
40
41
size ?: number ;
41
42
}
42
43
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 ;
45
46
47
+ // lower case the origin model so to better match more model id case
48
+ const model = originModel . toLowerCase ( ) ;
49
+
46
50
// currently supported models, maybe not in its own provider
47
51
if ( model . startsWith ( 'gpt' ) ) return < OpenAI size = { size } /> ;
48
52
if ( model . startsWith ( 'glm' ) || model . includes ( 'chatglm' ) ) return < ChatGLM size = { size } /> ;
@@ -65,6 +69,7 @@ const ModelIcon = memo<ModelIconProps>(({ model, size = 12 }) => {
65
69
if ( model . startsWith ( 'openchat' ) ) return < OpenChat size = { size } /> ;
66
70
if ( model . includes ( 'command' ) ) return < Cohere size = { size } /> ;
67
71
if ( model . includes ( 'dbrx' ) ) return < Dbrx size = { size } /> ;
72
+ if ( model . includes ( 'step' ) ) return < Stepfun size = { size } /> ;
68
73
if ( model . includes ( 'taichu' ) ) return < AiMass size = { size } /> ;
69
74
if ( model . includes ( '360gpt' ) ) return < Ai360 size = { size } /> ;
70
75
You can’t perform that action at this time.
0 commit comments