210f8958ce
A print statement to add a newline after iterating through the loop
12 lines
254 B
Markdown
12 lines
254 B
Markdown
### Example: `theb` (use like openai pypi package) <a name="example-theb"></a>
|
|
|
|
|
|
```python
|
|
# import library
|
|
import theb
|
|
|
|
# simple streaming completion
|
|
for token in theb.Completion.create('hello world'):
|
|
print(token, end='', flush=True)
|
|
print("")
|
|
```
|