From 6f4c57236b7e563e1565d4a60f39500c0cc99e57 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Fri, 25 Jul 2025 11:22:36 +0300 Subject: [PATCH] server : fix vision test regex ggml-ci --- tools/server/tests/unit/test_vision_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/server/tests/unit/test_vision_api.py b/tools/server/tests/unit/test_vision_api.py index fc63caa134..60b32ba01e 100644 --- a/tools/server/tests/unit/test_vision_api.py +++ b/tools/server/tests/unit/test_vision_api.py @@ -23,8 +23,8 @@ def create_server(): "prompt, image_url, success, re_content", [ # test model is trained on CIFAR-10, but it's quite dumb due to small size - ("What is this:\n", IMG_URL_0, True, "(cat)+"), - ("What is this:\n", "IMG_BASE64_0", True, "(cat)+"), # exceptional, so that we don't cog up the log + ("What is this:\n", IMG_URL_0, True, "(cat|\n)+"), + ("What is this:\n", "IMG_BASE64_0", True, "(cat|\n)+"), # exceptional, so that we don't cog up the log ("What is this:\n", IMG_URL_1, True, "(frog)+"), ("Test test\n", IMG_URL_1, True, "(frog)+"), # test invalidate cache ("What is this:\n", "malformed", False, None),