blob: a7af9dd802753ec410c18f7dcfe2fe3f52e044ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
### Example: `theb` (use like openai pypi package) <a name="example-theb"></a>
```python
# import library
from gpt4free import theb
# simple streaming completion
while True:
x = input()
for token in theb.Completion.create(x):
print(token, end='', flush=True)
print("")
```
|