From b2d5309ce61fa0086845cb8d43564e044985c2d2 Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Fri, 28 Apr 2023 23:58:49 +0100 Subject: readme --- openaihosted/readme.md | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 openaihosted/readme.md (limited to 'openaihosted/readme.md') diff --git a/openaihosted/readme.md b/openaihosted/readme.md deleted file mode 100644 index 7b8ced56..00000000 --- a/openaihosted/readme.md +++ /dev/null @@ -1,18 +0,0 @@ -### Example: `openaihosted` (use like openai pypi package) - -```python -import openaihosted - -messages = [{"role": "system", "content": "You are a helpful assistant."}] -while True: - question = input("Question: ") - if question == "!stop": - break - - messages.append({"role": "user", "content": question}) - request = openaihosted.Completion.create(messages=messages) - - response = request["responses"] - messages.append({"role": "assistant", "content": response}) - print(f"Answer: {response}") -``` -- cgit v1.2.3