|  | @@ -34,20 +34,15 @@ export type IConfigModelProps = {
 | 
											
												
													
														|  |    completionParams: CompletionParams
 |  |    completionParams: CompletionParams
 | 
											
												
													
														|  |    onCompletionParamsChange: (newParams: CompletionParams) => void
 |  |    onCompletionParamsChange: (newParams: CompletionParams) => void
 | 
											
												
													
														|  |    disabled: boolean
 |  |    disabled: boolean
 | 
											
												
													
														|  | -  canUseGPT4: boolean
 |  | 
 | 
											
												
													
														|  | -  onShowUseGPT4Confirm: () => void
 |  | 
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  const ConfigModel: FC<IConfigModelProps> = ({
 |  |  const ConfigModel: FC<IConfigModelProps> = ({
 | 
											
												
													
														|  | -  // mode,
 |  | 
 | 
											
												
													
														|  |    modelId,
 |  |    modelId,
 | 
											
												
													
														|  |    provider,
 |  |    provider,
 | 
											
												
													
														|  |    setModelId,
 |  |    setModelId,
 | 
											
												
													
														|  |    completionParams,
 |  |    completionParams,
 | 
											
												
													
														|  |    onCompletionParamsChange,
 |  |    onCompletionParamsChange,
 | 
											
												
													
														|  |    disabled,
 |  |    disabled,
 | 
											
												
													
														|  | -  canUseGPT4,
 |  | 
 | 
											
												
													
														|  | -  onShowUseGPT4Confirm,
 |  | 
 | 
											
												
													
														|  |  }) => {
 |  |  }) => {
 | 
											
												
													
														|  |    const { t } = useTranslation()
 |  |    const { t } = useTranslation()
 | 
											
												
													
														|  |    const { textGenerationModelList } = useProviderContext()
 |  |    const { textGenerationModelList } = useProviderContext()
 | 
											
										
											
												
													
														|  | @@ -122,11 +117,6 @@ const ConfigModel: FC<IConfigModelProps> = ({
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |    const handleSelectModel = (id: string, nextProvider = ProviderEnum.openai) => {
 |  |    const handleSelectModel = (id: string, nextProvider = ProviderEnum.openai) => {
 | 
											
												
													
														|  |      return async () => {
 |  |      return async () => {
 | 
											
												
													
														|  | -      if (id === 'gpt-4' && !canUseGPT4) {
 |  | 
 | 
											
												
													
														|  | -        hideConfig()
 |  | 
 | 
											
												
													
														|  | -        onShowUseGPT4Confirm()
 |  | 
 | 
											
												
													
														|  | -        return
 |  | 
 | 
											
												
													
														|  | -      }
 |  | 
 | 
											
												
													
														|  |        const prevParamsRule = getAllParams()[provider]?.[modelId]
 |  |        const prevParamsRule = getAllParams()[provider]?.[modelId]
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |        setModelId(id, nextProvider)
 |  |        setModelId(id, nextProvider)
 |