monra's picture
Adds all providers from the original API
d4adf88
|
raw
history blame
281 Bytes

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