@@ -2,7 +2,14 @@ import { IconAvatarProps, ModelIcon, ProviderIcon } from '@lobehub/icons';
2
2
import { Avatar , Icon , Tooltip } from '@lobehub/ui' ;
3
3
import { Typography } from 'antd' ;
4
4
import { createStyles } from 'antd-style' ;
5
- import { Infinity , AtomIcon , LucideEye , LucidePaperclip , ToyBrick } from 'lucide-react' ;
5
+ import {
6
+ Infinity ,
7
+ AtomIcon ,
8
+ LucideEye ,
9
+ LucideGlobe ,
10
+ LucidePaperclip ,
11
+ ToyBrick ,
12
+ } from 'lucide-react' ;
6
13
import numeral from 'numeral' ;
7
14
import { rgba } from 'polished' ;
8
15
import { FC , memo } from 'react' ;
@@ -14,7 +21,7 @@ import { AiProviderSourceType } from '@/types/aiProvider';
14
21
import { ChatModelCard } from '@/types/llm' ;
15
22
import { formatTokenNumber } from '@/utils/format' ;
16
23
17
- const useStyles = createStyles ( ( { css, token } ) => ( {
24
+ const useStyles = createStyles ( ( { css, token, isDarkMode } ) => ( {
18
25
custom : css `
19
26
width : 36px ;
20
27
height : 20px ;
@@ -41,6 +48,10 @@ const useStyles = createStyles(({ css, token }) => ({
41
48
color : ${ token . geekblue } ;
42
49
background : ${ token . geekblue1 } ;
43
50
` ,
51
+ tagCyan : css `
52
+ color : ${ isDarkMode ? token . cyan7 : token . cyan10 } ;
53
+ background : ${ isDarkMode ? token . cyan1 : token . cyan2 } ;
54
+ ` ,
44
55
tagGreen : css `
45
56
color : ${ token . green } ;
46
57
background : ${ token . green1 } ;
@@ -122,6 +133,17 @@ export const ModelInfoTags = memo<ModelInfoTagsProps>(
122
133
</ div >
123
134
</ Tooltip >
124
135
) }
136
+ { model . search && (
137
+ < Tooltip
138
+ placement = { placement }
139
+ styles = { { root : { pointerEvents : 'none' } } }
140
+ title = { t ( 'ModelSelect.featureTag.search' ) }
141
+ >
142
+ < div className = { cx ( styles . tag , styles . tagCyan ) } style = { { cursor : 'pointer' } } title = "" >
143
+ < Icon icon = { LucideGlobe } />
144
+ </ div >
145
+ </ Tooltip >
146
+ ) }
125
147
{ typeof model . contextWindowTokens === 'number' && (
126
148
< Tooltip
127
149
placement = { placement }
0 commit comments