gpt4free/unfinished/usesless
2023-04-30 15:05:51 +08:00
..
__init__.py delete module that is not accessed 2023-04-30 14:58:46 +08:00
README.md Update example 2023-04-30 15:05:51 +08:00

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