@@ -33,6 +33,10 @@ import { LoveMessage } from '@/app/components/base/icons/src/vender/features'
33
33
// type
34
34
import type { AutomaticRes } from '@/service/debug'
35
35
import { Generator } from '@/app/components/base/icons/src/vender/other'
36
+ import ModelIcon from '@/app/components/header/account-setting/model-provider-page/model-icon'
37
+ import ModelName from '@/app/components/header/account-setting/model-provider-page/model-name'
38
+ import { ModelTypeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'
39
+ import { useModelListAndDefaultModelAndCurrentProviderAndModel } from '@/app/components/header/account-setting/model-provider-page/hooks'
36
40
37
41
export type IGetAutomaticResProps = {
38
42
mode : AppType
@@ -68,7 +72,10 @@ const GetAutomaticRes: FC<IGetAutomaticResProps> = ({
68
72
onFinished,
69
73
} ) => {
70
74
const { t } = useTranslation ( )
71
-
75
+ const {
76
+ currentProvider,
77
+ currentModel,
78
+ } = useModelListAndDefaultModelAndCurrentProviderAndModel ( ModelTypeEnum . textGeneration )
72
79
const tryList = [
73
80
{
74
81
icon : RiTerminalBoxLine ,
@@ -191,6 +198,19 @@ const GetAutomaticRes: FC<IGetAutomaticResProps> = ({
191
198
< div className = { `leading-[28px] text-lg font-bold ${ s . textGradient } ` } > { t ( 'appDebug.generate.title' ) } </ div >
192
199
< div className = 'mt-1 text-[13px] font-normal text-gray-500' > { t ( 'appDebug.generate.description' ) } </ div >
193
200
</ div >
201
+ < div className = 'flex items-center mb-8' >
202
+ < ModelIcon
203
+ className = 'shrink-0 mr-1.5 '
204
+ provider = { currentProvider }
205
+ modelName = { currentModel ?. model }
206
+ />
207
+ < ModelName
208
+ className = 'grow'
209
+ modelItem = { currentModel ! }
210
+ showMode
211
+ showFeatures
212
+ />
213
+ </ div >
194
214
< div >
195
215
< div className = 'flex items-center' >
196
216
< div className = 'mr-3 shrink-0 leading-[18px] text-xs font-semibold text-gray-500 uppercase' > { t ( 'appDebug.generate.tryIt' ) } </ div >
0 commit comments