Update test_chat_completion.py

This commit is contained in:
ochafik 2024-12-30 04:59:13 +00:00
parent 389d79b6b4
commit 238b9689e0

View File

@ -104,7 +104,6 @@ def test_chat_completion_with_openai_library():
@pytest.mark.parametrize("response_format,n_predicted,re_content", [ @pytest.mark.parametrize("response_format,n_predicted,re_content", [
({"type": "json_object", "schema": {"const": "42"}}, 6, "\"42\""), ({"type": "json_object", "schema": {"const": "42"}}, 6, "\"42\""),
({"type": "json_schema", "json_schema": {"const": "42"}}, 6, "\"42\""),
({"type": "json_object", "schema": {"items": [{"type": "integer"}]}}, 10, "[ -3000 ]"), ({"type": "json_object", "schema": {"items": [{"type": "integer"}]}}, 10, "[ -3000 ]"),
({"type": "json_object"}, 10, "(\\{|John)+"), ({"type": "json_object"}, 10, "(\\{|John)+"),
({"type": "sound"}, 0, None), ({"type": "sound"}, 0, None),