From 41f1ba798a20458aec355962a36b6c4946306c13 Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Tue, 25 Apr 2023 15:27:36 -0300 Subject: [PATCH] refactor(test_llms_template.py): change required fields to optional in tests for huggingfacehub_api_token, openai_api_key, and chat_openai_api_key in llms_template. --- tests/test_llms_template.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_llms_template.py b/tests/test_llms_template.py index 2e6ee606b..934ec7e05 100644 --- a/tests/test_llms_template.py +++ b/tests/test_llms_template.py @@ -83,7 +83,7 @@ def test_hugging_face_hub(client: TestClient): "list": False, } assert template["huggingfacehub_api_token"] == { - "required": True, + "required": False, "placeholder": "", "show": True, "multiline": False, @@ -241,7 +241,7 @@ def test_openai(client: TestClient): "list": False, } assert template["openai_api_key"] == { - "required": True, + "required": False, "placeholder": "", "show": True, "multiline": False, @@ -371,7 +371,7 @@ def test_chat_open_ai(client: TestClient): "list": False, } assert template["openai_api_key"] == { - "required": True, + "required": False, "placeholder": "", "show": True, "multiline": False,