mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-04 09:32:00 +00:00 
			
		
		
		
	Update test_chat_completion.py
This commit is contained in:
		@@ -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),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user