pruth23's picture
Duplicate from pruth23/freegpt4
2f013d1

Example: theb (use like openai pypi package)

# 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("")