From 93e99fb343c2caa270a2be4429850ba312d401e4 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 25 May 2023 18:15:57 +0800 Subject: [PATCH] feat: generation support gpt4 (#200) --- web/app/components/app/configuration/config-model/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/app/configuration/config-model/index.tsx b/web/app/components/app/configuration/config-model/index.tsx index a4f7b6a636..b0a63f70f9 100644 --- a/web/app/components/app/configuration/config-model/index.tsx +++ b/web/app/components/app/configuration/config-model/index.tsx @@ -29,6 +29,7 @@ const options = [ { id: 'gpt-4', name: 'gpt-4', type: AppType.chat }, // 8k version { id: 'gpt-3.5-turbo', name: 'gpt-3.5-turbo', type: AppType.completion }, { id: 'text-davinci-003', name: 'text-davinci-003', type: AppType.completion }, + { id: 'gpt-4', name: 'gpt-4', type: AppType.completion }, // 8k version ] const ModelIcon = ({ className }: { className?: string }) => ( @@ -205,14 +206,14 @@ const ConifgModel: FC = ({
{t('appDebug.modelConfig.model')}
{/* model selector */} -
+
!selectModelDisabled && toogleOption()} className={cn(selectModelDisabled ? 'cursor-not-allowed' : 'cursor-pointer', "flex items-center h-9 px-3 space-x-2 rounded-lg bg-gray-50 ")}>
{selectedModel?.name}
{!selectModelDisabled && }
{isShowOption && ( -
+
{availableModels.map(item => (