summaryrefslogtreecommitdiffstats
path: root/sqlchat/README.md
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-25 13:31:12 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-25 13:31:12 +0200
commitcfce83bb8492abfb608ab47c1c6815031f53c765 (patch)
treeada99f785fb65347869611817e519ed2d1d3bdfb /sqlchat/README.md
parentpoe.com update (diff)
downloadgpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar
gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar.gz
gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar.bz2
gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar.lz
gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar.xz
gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar.zst
gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.zip
Diffstat (limited to 'sqlchat/README.md')
-rw-r--r--sqlchat/README.md42
1 files changed, 0 insertions, 42 deletions
diff --git a/sqlchat/README.md b/sqlchat/README.md
deleted file mode 100644
index 89d38fae..00000000
--- a/sqlchat/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-### Example: `sqlchat` (use like openai pypi package) <a name="example-sqlchat"></a>
-
-```python
-# Import sqlchat
-import sqlchat
-
-# sqlchat.Completion.create
-# sqlchat.StreamCompletion.create
-
-[...]
-
-```
-
-#### Example Chatbot
-```python
-messages = []
-
-while True:
- user = input('you: ')
-
- sqlchat_cmpl = sqlchat.Completion.create(
- prompt = user,
- messages = messages
- )
-
- print('gpt:', sqlchat_cmpl.completion.choices[0].text)
-
- messages.extend([
- {'role': 'user', 'content': user },
- {'role': 'assistant', 'content': sqlchat_cmpl.completion.choices[0].text}
- ])
-```
-
-#### Streaming Response:
-
-```python
-for response in sqlchat.StreamCompletion.create(
- prompt = 'write python code to reverse a string',
- messages = []):
-
- print(response.completion.choices[0].text)
-```