summaryrefslogtreecommitdiffstats
path: root/openaihosted/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'openaihosted/readme.md')
-rw-r--r--openaihosted/readme.md18
1 files changed, 0 insertions, 18 deletions
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) <a name="example-openaihosted"></a>
-
-```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}")
-```