Skip to content

Commit 6f4c572

Browse files
committed
server : fix vision test regex
ggml-ci
1 parent 7233358 commit 6f4c572

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/server/tests/unit/test_vision_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def create_server():
2323
"prompt, image_url, success, re_content",
2424
[
2525
# test model is trained on CIFAR-10, but it's quite dumb due to small size
26-
("What is this:\n", IMG_URL_0, True, "(cat)+"),
27-
("What is this:\n", "IMG_BASE64_0", True, "(cat)+"), # exceptional, so that we don't cog up the log
26+
("What is this:\n", IMG_URL_0, True, "(cat|\n)+"),
27+
("What is this:\n", "IMG_BASE64_0", True, "(cat|\n)+"), # exceptional, so that we don't cog up the log
2828
("What is this:\n", IMG_URL_1, True, "(frog)+"),
2929
("Test test\n", IMG_URL_1, True, "(frog)+"), # test invalidate cache
3030
("What is this:\n", "malformed", False, None),

0 commit comments

Comments
 (0)