From cc8e5e31068a4225f52f6e05f0fc6e8f61a59041 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 23 Jun 2023 09:19:25 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20feat(tests):=20update=20default?= =?UTF-8?q?=20values=20for=20OpenAI=20models=20in=20chat=20and=20text=20fi?= =?UTF-8?q?elds=20The=20default=20value=20for=20the=20OpenAI=20model=20in?= =?UTF-8?q?=20the=20chat=20field=20has=20been=20updated=20to=20"gpt-3.5-tu?= =?UTF-8?q?rbo-0613"=20to=20reflect=20the=20latest=20version=20of=20the=20?= =?UTF-8?q?model.=20The=20default=20value=20for=20the=20OpenAI=20model=20i?= =?UTF-8?q?n=20the=20text=20field=20has=20been=20updated=20to=20"text-davi?= =?UTF-8?q?nci-003"=20to=20reflect=20the=20latest=20version=20of=20the=20m?= =?UTF-8?q?odel.=20This=20ensures=20that=20the=20tests=20are=20using=20the?= =?UTF-8?q?=20latest=20and=20most=20accurate=20models=20for=20OpenAI.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_llms_template.py | 2 +- tests/test_template.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_llms_template.py b/tests/test_llms_template.py index e57c7264a..3f8c09079 100644 --- a/tests/test_llms_template.py +++ b/tests/test_llms_template.py @@ -369,7 +369,7 @@ def test_chat_open_ai(client: TestClient): "placeholder": "", "show": True, "multiline": False, - "value": "gpt-3.5-turbo", + "value": "gpt-3.5-turbo-0613", "password": False, "options": [ "gpt-3.5-turbo-0613", diff --git a/tests/test_template.py b/tests/test_template.py index a9b5a71ed..54d869647 100644 --- a/tests/test_template.py +++ b/tests/test_template.py @@ -222,6 +222,7 @@ def test_format_dict(): "password": False, "multiline": False, "options": OPENAI_MODELS, + "value": "text-davinci-003", }, } expected_output_openai_chat = { @@ -233,6 +234,7 @@ def test_format_dict(): "password": False, "multiline": False, "options": CHAT_OPENAI_MODELS, + "value": "gpt-3.5-turbo-0613", }, } assert format_dict(input_dict, "OpenAI") == expected_output_openai