1
0
Fork 0
GPT4FREE/gpt4free/usesless
2023-05-01 20:04:45 +05:30
..
__init__.py refactored code 2023-05-01 20:04:45 +05:30
README.md added a site and some refratoring 2023-04-30 12:42:21 +01: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"]