mirror of https://github.com/InternLM/InternLM
add assert to detect whitespace
parent
95db92d601
commit
3002cbd265
|
@ -9,6 +9,8 @@ prompts = ['你好', "what's your name"]
|
|||
def assert_model(response):
|
||||
assert len(response) != 0
|
||||
assert 'UNUSED_TOKEN' not in response
|
||||
assert 'Mynameis' not in response
|
||||
assert 'Iama' not in response
|
||||
|
||||
|
||||
class TestChat:
|
||||
|
|
Loading…
Reference in New Issue