From 54b4c789a75fec5c3a92a03dfd2d93d051309651 Mon Sep 17 00:00:00 2001 From: Raju Komati Date: Sat, 29 Apr 2023 14:55:24 +0530 Subject: added gpt4free package --- you/README.md | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 you/README.md (limited to 'you/README.md') diff --git a/you/README.md b/you/README.md deleted file mode 100644 index 25c20085..00000000 --- a/you/README.md +++ /dev/null @@ -1,37 +0,0 @@ -### 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, - include_links=True, ) - -print(response) - -# { -# "response": "...", -# "links": [...], -# "extra": {...}, -# "slots": {...} -# } -# } - -# chatbot - -chat = [] - -while True: - prompt = input("You: ") - if prompt == 'q': - break - response = you.Completion.create( - prompt=prompt, - chat=chat) - - print("Bot:", response["response"]) - - chat.append({"question": prompt, "answer": response["response"]}) -``` -- cgit v1.2.3