From 7929a43bc4706b7c8c27570ab26bb5111b558e15 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 6 Nov 2023 21:01:28 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20chore(constants.py):=20reorder?= =?UTF-8?q?=20CHAT=5FOPENAI=5FMODELS=20list=20to=20prioritize=20gpt-4-1106?= =?UTF-8?q?-preview=20model=20=F0=9F=94=84=20chore(test=5Fllms=5Ftemplate.?= =?UTF-8?q?py):=20update=20default=20value=20and=20options=20for=20model?= =?UTF-8?q?=5Fname=20field=20to=20gpt-4-1106-preview=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/utils/constants.py | 9 +++------ tests/test_llms_template.py | 11 ++++------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/backend/langflow/utils/constants.py b/src/backend/langflow/utils/constants.py index 0c97b56a2..f3671425c 100644 --- a/src/backend/langflow/utils/constants.py +++ b/src/backend/langflow/utils/constants.py @@ -6,14 +6,11 @@ OPENAI_MODELS = [ "text-ada-001", ] CHAT_OPENAI_MODELS = [ - "gpt-3.5-turbo-0613", - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k-0613", - "gpt-3.5-turbo-16k", - "gpt-4-0613", - "gpt-4-32k-0613", + "gpt-4-1106-preview", "gpt-4", "gpt-4-32k", + "gpt-3.5-turbo", + "gpt-3.5-turbo-16k", ] ANTHROPIC_MODELS = [ diff --git a/tests/test_llms_template.py b/tests/test_llms_template.py index 0a30a825e..78131cb05 100644 --- a/tests/test_llms_template.py +++ b/tests/test_llms_template.py @@ -309,17 +309,14 @@ def test_chat_open_ai(client: TestClient, logged_in_headers): "placeholder": "", "show": True, "multiline": False, - "value": "gpt-3.5-turbo-0613", + "value": "gpt-4-1106-preview", "password": False, "options": [ - "gpt-3.5-turbo-0613", - "gpt-3.5-turbo", - "gpt-3.5-turbo-16k-0613", - "gpt-3.5-turbo-16k", - "gpt-4-0613", - "gpt-4-32k-0613", + "gpt-4-1106-preview", "gpt-4", "gpt-4-32k", + "gpt-3.5-turbo", + "gpt-3.5-turbo-16k", ], "name": "model_name", "type": "str",