mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-02-05 16:10:42 +01:00
Update test_chat_completion.py
This commit is contained in:
parent
389d79b6b4
commit
238b9689e0
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user