Test streaming text with parameters.
(self)
| 75 | self.assertIsInstance(chunk, str, "streams output") |
| 76 | |
| 77 | def test_streams_text_with_params(self): |
| 78 | """Test streaming text with parameters.""" |
| 79 | stream = model.run("Jack and jill", {"max_length": 100}, stream=True) |
| 80 | |
| 81 | for chunk in stream: |
| 82 | self.assertIsInstance(chunk, str, "streams output") |
| 83 | |
| 84 | def test_stream_false_does_not_stream(self): |
| 85 | """Test that `stream=False` does not return a stream.""" |