From 5740800bcd5cca50ec8c4cd43046cbffd967ca43 Mon Sep 17 00:00:00 2001 From: rpidanny Date: Thu, 11 Jul 2024 18:36:04 +0200 Subject: [PATCH 1/3] feat: update openai models --- src/containers/Settings/Settings.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/containers/Settings/Settings.tsx b/src/containers/Settings/Settings.tsx index 33c0398..2846150 100644 --- a/src/containers/Settings/Settings.tsx +++ b/src/containers/Settings/Settings.tsx @@ -4,11 +4,14 @@ import React, { useEffect, useState } from 'react'; enum OpenAIChatModel { GPT_4 = 'gpt-4', - GPT_4_0314 = 'gpt-4-0314', - GPT_4_32K = 'gpt-4-32k', - GPT_4_32K_0314 = 'gpt-4-32k-0314', + GPT_4_o = 'gpt-4o', + GPT_4_TURBO = 'gpt-4-turbo', + GPT_4_0613 = 'gpt-4-0613', GPT_3_5_TURBO = 'gpt-3.5-turbo', GPT_3_5_TURBO_0301 = 'gpt-3.5-turbo-0301', + GPT_3_5_TURBO_0125 = 'gpt-3.5-turbo-0125', + GPT_3_5_TURBO_1106 = 'gpt-3.5-turbo-1106', + GPT_3_5_TURBO_INSTRUCT = 'gpt-3.5-turbo-instruct', } const Settings = () => { From 91fdffb61b3e50f2a0ecc1cf3fd207422adbf559 Mon Sep 17 00:00:00 2001 From: rpidanny Date: Thu, 11 Jul 2024 18:39:18 +0200 Subject: [PATCH 2/3] feat: dynamic openai model list --- src/containers/Settings/Settings.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/containers/Settings/Settings.tsx b/src/containers/Settings/Settings.tsx index 2846150..9417bc7 100644 --- a/src/containers/Settings/Settings.tsx +++ b/src/containers/Settings/Settings.tsx @@ -80,14 +80,7 @@ const Settings = () => { onChange={handleModelChange} defaultValue={OpenAIChatModel.GPT_3_5_TURBO} > - - - - - - + ${...Object.values(OpenAIChatModel).map(value => ())}
From d197400dd76b28a53135f81fc5d20ad7dea48a25 Mon Sep 17 00:00:00 2001 From: rpidanny Date: Thu, 11 Jul 2024 18:51:55 +0200 Subject: [PATCH 3/3] fix: enable package workflow --- .github/workflows/package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 410f819..d010859 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -1,8 +1,8 @@ name: Package on: - # release: - # types: [published] + release: + types: [published] # support manual release in case something goes wrong and needs to be repeated or tested workflow_dispatch: inputs: