mirror of https://github.com/xtekky/gpt4free
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
577 B
Python
26 lines
577 B
Python
from gpt4free import usesless
|
|
|
|
message_id = ""
|
|
while True:
|
|
prompt = input("Question: ")
|
|
if prompt == "!stop":
|
|
break
|
|
|
|
req = usesless.Completion.create(prompt=prompt, parentMessageId=message_id)
|
|
|
|
print(f"Answer: {req['text']}")
|
|
message_id = req["id"]
|
|
|
|
import gpt4free
|
|
|
|
message_id = ""
|
|
while True:
|
|
prompt = input("Question: ")
|
|
if prompt == "!stop":
|
|
break
|
|
|
|
req = gpt4free.Completion.create(provider=gpt4free.Provider.UseLess, prompt=prompt, parentMessageId=message_id)
|
|
|
|
print(f"Answer: {req['text']}")
|
|
message_id = req["id"]
|