gpt4free-original/gpt4free/theb
ZachKLYeh 68583f46cd
Update __init__.py
add timeout argument to solve long response message timeout issue
2023-05-03 20:55:26 +08:00
..
README.md theb: multiple messages 2023-05-01 17:53:32 +05:00
__init__.py Update __init__.py 2023-05-03 20:55:26 +08:00
theb_test.py refactored code 2023-04-29 15:50:18 +05:30

README.md

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