mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-08 03:49:10 +00:00
bindings/python: type assert
This commit is contained in:
@@ -87,7 +87,7 @@ def test_inference_falcon():
|
||||
model = GPT4All(model_name='ggml-model-gpt4all-falcon-q4_0.bin')
|
||||
prompt = 'hello'
|
||||
output = model.generate(prompt)
|
||||
|
||||
assert isinstance(output, str)
|
||||
assert len(output) > 0
|
||||
|
||||
|
||||
@@ -95,4 +95,5 @@ def test_inference_mpt():
|
||||
model = GPT4All(model_name='ggml-mpt-7b-chat.bin')
|
||||
prompt = 'hello'
|
||||
output = model.generate(prompt)
|
||||
assert isinstance(output, str)
|
||||
assert len(output) > 0
|
||||
|
Reference in New Issue
Block a user