diff options
Diffstat (limited to 'gpt4free/usesless/README.md')
-rw-r--r-- | gpt4free/usesless/README.md | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/gpt4free/usesless/README.md b/gpt4free/usesless/README.md index 13e9df8c..afe6c9c7 100644 --- a/gpt4free/usesless/README.md +++ b/gpt4free/usesless/README.md @@ -1,23 +1,32 @@ ai.usesless.com -to do: +### Example: `usesless` <a name="example-usesless"></a> -- use random user agent in header -- make the code better I guess (?) +### create account -### Example: `usesless` <a name="example-usesless"></a> +<p>create account first, this will create account.txt that contains mail and token</p> +```python +import usesless + +usesless.Account.create(logging=True) + +```` + +### completion +<p>insert token from account.txt</p> ```python import usesless message_id = "" +token = <TOKENHERE> # usesless.Account.create(logging=True) while True: prompt = input("Question: ") if prompt == "!stop": break - req = usesless.Completion.create(prompt=prompt, parentMessageId=message_id) + req = usesless.Completion.create(prompt=prompt, parentMessageId=message_id, token=token) print(f"Answer: {req['text']}") message_id = req["id"] -``` +```` |