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:
parent
0f0366ebbb
commit
41f1ba798a
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue