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.

This commit is contained in:
Gabriel Almeida 2023-04-25 15:27:36 -03:00 committed by Gabriel Luiz Freitas Almeida
commit 41f1ba798a

View file

@ -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,