summaryrefslogtreecommitdiffstats
path: root/openaihosted/readme.md
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-29 00:58:49 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-29 00:58:49 +0200
commitb2d5309ce61fa0086845cb8d43564e044985c2d2 (patch)
tree55a440f1fe321175763fe02af593125c70820557 /openaihosted/readme.md
parentMerge branch 'main' of https://github.com/xtekky/gpt4free (diff)
downloadgpt4free-b2d5309ce61fa0086845cb8d43564e044985c2d2.tar
gpt4free-b2d5309ce61fa0086845cb8d43564e044985c2d2.tar.gz
gpt4free-b2d5309ce61fa0086845cb8d43564e044985c2d2.tar.bz2
gpt4free-b2d5309ce61fa0086845cb8d43564e044985c2d2.tar.lz
gpt4free-b2d5309ce61fa0086845cb8d43564e044985c2d2.tar.xz
gpt4free-b2d5309ce61fa0086845cb8d43564e044985c2d2.tar.zst
gpt4free-b2d5309ce61fa0086845cb8d43564e044985c2d2.zip
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}")
-```