diff options
Diffstat (limited to '')
-rw-r--r-- | unfinished/usesless/README.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/unfinished/usesless/README.md b/unfinished/usesless/README.md new file mode 100644 index 00000000..4ff6d94b --- /dev/null +++ b/unfinished/usesless/README.md @@ -0,0 +1,24 @@ +ai.usesless.com + +to do: + +- use random user agent in header +- make the code better I guess (?) + +### Example: `usesless` <a name="example-usesless"></a> + +```python +import usesless + +question1 = "Who won the world series in 2020?" +req = usesless.Completion.create(prompt=question1) +answer = req["text"] +message_id = req["parentMessageId"] + +question2 = "Where was it played?" +req2 = usesless.Completion.create(prompt=question2, parentMessageId=message_id) +answer2 = req2["text"] + +print(answer) +print(answer2) +``` |