From ac2a0b0a06d1a9d7f71163940fd3f9cbe81874a1 Mon Sep 17 00:00:00 2001
From: timothycarambat <rambat1010@gmail.com>
Date: Tue, 10 Oct 2023 11:15:11 -0700
Subject: [PATCH] reduce available types of models

---
 .../src/components/Modals/Settings/LLMSelection/index.jsx   | 5 -----
 server/utils/helpers/updateENV.js                           | 6 ------
 2 files changed, 11 deletions(-)

diff --git a/frontend/src/components/Modals/Settings/LLMSelection/index.jsx b/frontend/src/components/Modals/Settings/LLMSelection/index.jsx
index bc40db3eb..9d930a7b4 100644
--- a/frontend/src/components/Modals/Settings/LLMSelection/index.jsx
+++ b/frontend/src/components/Modals/Settings/LLMSelection/index.jsx
@@ -117,12 +117,7 @@ export default function LLMSelection({
                     >
                       {[
                         "gpt-3.5-turbo",
-                        "gpt-3.5-turbo-0613",
-                        "gpt-3.5-turbo-16k",
                         "gpt-4",
-                        "gpt-4-0613",
-                        "gpt-4-32k",
-                        "gpt-4-32k-0613",
                       ].map((model) => {
                         return (
                           <option key={model} value={model}>
diff --git a/server/utils/helpers/updateENV.js b/server/utils/helpers/updateENV.js
index a7fb92107..3fcbb9a2a 100644
--- a/server/utils/helpers/updateENV.js
+++ b/server/utils/helpers/updateENV.js
@@ -120,13 +120,7 @@ function supportedLLM(input = "") {
 function validOpenAIModel(input = "") {
   const validModels = [
     "gpt-4",
-    "gpt-4-0613",
-    "gpt-4-32k",
-    "gpt-4-32k-0613",
     "gpt-3.5-turbo",
-    "gpt-3.5-turbo-0613",
-    "gpt-3.5-turbo-16k",
-    "gpt-3.5-turbo-16k-0613",
   ];
   return validModels.includes(input)
     ? null