diff --git a/web/app/components/app/configuration/config-model/index.tsx b/web/app/components/app/configuration/config-model/index.tsx index 1649592d1f..a8d27f24e9 100644 --- a/web/app/components/app/configuration/config-model/index.tsx +++ b/web/app/components/app/configuration/config-model/index.tsx @@ -34,20 +34,15 @@ export type IConfigModelProps = { completionParams: CompletionParams onCompletionParamsChange: (newParams: CompletionParams) => void disabled: boolean - canUseGPT4: boolean - onShowUseGPT4Confirm: () => void } const ConfigModel: FC = ({ - // mode, modelId, provider, setModelId, completionParams, onCompletionParamsChange, disabled, - canUseGPT4, - onShowUseGPT4Confirm, }) => { const { t } = useTranslation() const { textGenerationModelList } = useProviderContext() @@ -122,11 +117,6 @@ const ConfigModel: FC = ({ const handleSelectModel = (id: string, nextProvider = ProviderEnum.openai) => { return async () => { - if (id === 'gpt-4' && !canUseGPT4) { - hideConfig() - onShowUseGPT4Confirm() - return - } const prevParamsRule = getAllParams()[provider]?.[modelId] setModelId(id, nextProvider) diff --git a/web/app/components/app/configuration/index.tsx b/web/app/components/app/configuration/index.tsx index 0d2363b9a6..5f85878a78 100644 --- a/web/app/components/app/configuration/index.tsx +++ b/web/app/components/app/configuration/index.tsx @@ -292,10 +292,6 @@ const Configuration: FC = () => { setCompletionParams(newParams) }} disabled={!hasSetAPIKEY} - canUseGPT4={hasSetCustomAPIKEY} - onShowUseGPT4Confirm={() => { - setShowUseGPT4Confirm(true) - }} />