1
0
Fork 0
GPT4FREE/gpt4free/theb/README.md

15 lines
281 B
Markdown
Raw Permalink Normal View History

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
2023-05-01 12:53:32 +00:00
while True:
x = input()
for token in theb.Completion.create(x):
print(token, end='', flush=True)
print("")
```