refactor(tests): change 'advanced' field to False in all tests templates
This commit is contained in:
parent
c623b02bf2
commit
13e58b55b3
3 changed files with 42 additions and 42 deletions
|
|
@ -28,7 +28,7 @@ def test_hugging_face_hub(client: TestClient):
|
|||
"name": "cache",
|
||||
"type": "bool",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["verbose"] == {
|
||||
"required": False,
|
||||
|
|
@ -40,7 +40,7 @@ def test_hugging_face_hub(client: TestClient):
|
|||
"name": "verbose",
|
||||
"type": "bool",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["client"] == {
|
||||
"required": False,
|
||||
|
|
@ -51,7 +51,7 @@ def test_hugging_face_hub(client: TestClient):
|
|||
"name": "client",
|
||||
"type": "Any",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["repo_id"] == {
|
||||
"required": False,
|
||||
|
|
@ -63,7 +63,7 @@ def test_hugging_face_hub(client: TestClient):
|
|||
"name": "repo_id",
|
||||
"type": "str",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["task"] == {
|
||||
"required": True,
|
||||
|
|
@ -120,7 +120,7 @@ def test_openai(client: TestClient):
|
|||
"name": "cache",
|
||||
"type": "bool",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["verbose"] == {
|
||||
"required": False,
|
||||
|
|
@ -131,7 +131,7 @@ def test_openai(client: TestClient):
|
|||
"name": "verbose",
|
||||
"type": "bool",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["client"] == {
|
||||
"required": False,
|
||||
|
|
@ -142,7 +142,7 @@ def test_openai(client: TestClient):
|
|||
"name": "client",
|
||||
"type": "Any",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["model_name"] == {
|
||||
"required": False,
|
||||
|
|
@ -186,7 +186,7 @@ def test_openai(client: TestClient):
|
|||
"name": "max_tokens",
|
||||
"type": "int",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["top_p"] == {
|
||||
"required": False,
|
||||
|
|
@ -198,7 +198,7 @@ def test_openai(client: TestClient):
|
|||
"name": "top_p",
|
||||
"type": "float",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["frequency_penalty"] == {
|
||||
"required": False,
|
||||
|
|
@ -210,7 +210,7 @@ def test_openai(client: TestClient):
|
|||
"name": "frequency_penalty",
|
||||
"type": "float",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["presence_penalty"] == {
|
||||
"required": False,
|
||||
|
|
@ -222,7 +222,7 @@ def test_openai(client: TestClient):
|
|||
"name": "presence_penalty",
|
||||
"type": "float",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["n"] == {
|
||||
"required": False,
|
||||
|
|
@ -234,7 +234,7 @@ def test_openai(client: TestClient):
|
|||
"name": "n",
|
||||
"type": "int",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["best_of"] == {
|
||||
"required": False,
|
||||
|
|
@ -246,7 +246,7 @@ def test_openai(client: TestClient):
|
|||
"name": "best_of",
|
||||
"type": "int",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["model_kwargs"] == {
|
||||
"required": False,
|
||||
|
|
@ -282,7 +282,7 @@ def test_openai(client: TestClient):
|
|||
"name": "batch_size",
|
||||
"type": "int",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["request_timeout"] == {
|
||||
"required": False,
|
||||
|
|
@ -293,7 +293,7 @@ def test_openai(client: TestClient):
|
|||
"name": "request_timeout",
|
||||
"type": "Union[float, Tuple[float, float], NoneType]",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["logit_bias"] == {
|
||||
"required": False,
|
||||
|
|
@ -304,7 +304,7 @@ def test_openai(client: TestClient):
|
|||
"name": "logit_bias",
|
||||
"type": "code",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["max_retries"] == {
|
||||
"required": False,
|
||||
|
|
@ -316,7 +316,7 @@ def test_openai(client: TestClient):
|
|||
"name": "max_retries",
|
||||
"type": "int",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["streaming"] == {
|
||||
"required": False,
|
||||
|
|
@ -328,7 +328,7 @@ def test_openai(client: TestClient):
|
|||
"name": "streaming",
|
||||
"type": "bool",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -351,7 +351,7 @@ def test_chat_open_ai(client: TestClient):
|
|||
"name": "verbose",
|
||||
"type": "bool",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["client"] == {
|
||||
"required": False,
|
||||
|
|
@ -362,7 +362,7 @@ def test_chat_open_ai(client: TestClient):
|
|||
"name": "client",
|
||||
"type": "Any",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["model_name"] == {
|
||||
"required": False,
|
||||
|
|
@ -423,7 +423,7 @@ def test_chat_open_ai(client: TestClient):
|
|||
"name": "request_timeout",
|
||||
"type": "int",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["max_retries"] == {
|
||||
"required": False,
|
||||
|
|
@ -435,7 +435,7 @@ def test_chat_open_ai(client: TestClient):
|
|||
"name": "max_retries",
|
||||
"type": "int",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["streaming"] == {
|
||||
"required": False,
|
||||
|
|
@ -447,7 +447,7 @@ def test_chat_open_ai(client: TestClient):
|
|||
"name": "streaming",
|
||||
"type": "bool",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["n"] == {
|
||||
"required": False,
|
||||
|
|
@ -459,7 +459,7 @@ def test_chat_open_ai(client: TestClient):
|
|||
"name": "n",
|
||||
"type": "int",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
|
||||
assert template["max_tokens"] == {
|
||||
|
|
@ -471,7 +471,7 @@ def test_chat_open_ai(client: TestClient):
|
|||
"name": "max_tokens",
|
||||
"type": "int",
|
||||
"list": False,
|
||||
"advanced": True,
|
||||
"advanced": False,
|
||||
}
|
||||
assert template["_type"] == "ChatOpenAI"
|
||||
assert (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue