We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78e3cb3 commit c432a82Copy full SHA for c432a82
examples/server/tests/unit/test_completion.py
@@ -1,6 +1,5 @@
1
import pytest
2
import time
3
-from openai import OpenAI
4
from utils import *
5
6
server = ServerPreset.tinyllama2()
@@ -196,4 +195,7 @@ def check_slots_status():
196
195
prompt, re_content = PROMPTS[i % len(PROMPTS)]
197
res = results[i]
198
assert res.status_code == 200
199
- assert match_regex(re_content, res.body["content"])
+ assert type(res.body["content"]) == str
+ assert len(res.body["content"]) > 10
200
+ # FIXME: the result is not deterministic when using other slot than slot 0
201
+ # assert match_regex(re_content, res.body["content"])
0 commit comments