2023-04-27 18:32:39 +00:00
|
|
|
### Example: `theb` (use like openai pypi package) <a name="example-theb"></a>
|
|
|
|
|
|
|
|
```python
|
|
|
|
# import library
|
2023-04-29 09:25:24 +00:00
|
|
|
from gpt4free import theb
|
2023-04-27 18:32:39 +00:00
|
|
|
|
|
|
|
# simple streaming completion
|
|
|
|
for token in theb.Completion.create('hello world'):
|
|
|
|
print(token, end='', flush=True)
|
2023-04-28 03:51:52 +00:00
|
|
|
print("")
|
|
|
|
```
|