Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 281 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 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("")