2023-04-28 03:32:39 +09:00
|
|
|
### 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)
|
2023-04-28 12:51:52 +09:00
|
|
|
print("")
|
|
|
|
```
|