Test streaming text.
(self)
| 62 | "returns output", |
| 63 | ) |
| 64 | def test_stream_kwargs(self): |
| 65 | """Test streaming text.""" |
| 66 | stream = model.run("Jack and jill", stream=True) |
| 67 | |
| 68 | for chunk in stream: |
| 69 | self.assertIsInstance(chunk, str, "streams output") |
| 70 | def test_stream(self): |
| 71 | """Test streaming text.""" |
| 72 | stream = model.run("Jack and jill", True) |