From 789b209d03ba45d4dbe9af924f5806abda371cd9 Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Sat, 22 Apr 2023 13:54:01 +0100 Subject: move documenation to individual folder --- you/README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 you/README.md (limited to 'you/README.md') diff --git a/you/README.md b/you/README.md new file mode 100644 index 00000000..69da131a --- /dev/null +++ b/you/README.md @@ -0,0 +1,36 @@ +### Example: `you` (use like openai pypi package) + +```python +import you + +# simple request with links and details +response = you.Completion.create( + prompt = "hello world", + detailed = True, + includelinks = True,) + +print(response) + +# { +# "response": "...", +# "links": [...], +# "extra": {...}, +# "slots": {...} +# } +# } + +#chatbot + +chat = [] + +while True: + prompt = input("You: ") + + response = you.Completion.create( + prompt = prompt, + chat = chat) + + print("Bot:", response["response"]) + + chat.append({"question": prompt, "answer": response["response"]}) +``` \ No newline at end of file -- cgit v1.2.3