1
0
Fork 0
GPT4FREE/gpt4free/usesless/README.md
2023-04-30 12:42:21 +01:00

429 B

ai.usesless.com

to do:

  • use random user agent in header
  • make the code better I guess (?)

Example: usesless

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"]