summaryrefslogtreecommitdiffstats
path: root/unfinished/sqlchat
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-22 15:08:19 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-22 15:08:19 +0200
commit85a1961b640e552b3abebae2462a1b425cd87f4f (patch)
tree45b931f9458edc8903fad7f5dc4f08781296da5f /unfinished/sqlchat
parentdocu (diff)
downloadgpt4free-85a1961b640e552b3abebae2462a1b425cd87f4f.tar
gpt4free-85a1961b640e552b3abebae2462a1b425cd87f4f.tar.gz
gpt4free-85a1961b640e552b3abebae2462a1b425cd87f4f.tar.bz2
gpt4free-85a1961b640e552b3abebae2462a1b425cd87f4f.tar.lz
gpt4free-85a1961b640e552b3abebae2462a1b425cd87f4f.tar.xz
gpt4free-85a1961b640e552b3abebae2462a1b425cd87f4f.tar.zst
gpt4free-85a1961b640e552b3abebae2462a1b425cd87f4f.zip
Diffstat (limited to 'unfinished/sqlchat')
-rw-r--r--unfinished/sqlchat/README.md3
-rw-r--r--unfinished/sqlchat/__init__.py29
2 files changed, 0 insertions, 32 deletions
diff --git a/unfinished/sqlchat/README.md b/unfinished/sqlchat/README.md
deleted file mode 100644
index ddd5c8f9..00000000
--- a/unfinished/sqlchat/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-https://www.sqlchat.ai/
-to do:
-- code refractoring \ No newline at end of file
diff --git a/unfinished/sqlchat/__init__.py b/unfinished/sqlchat/__init__.py
deleted file mode 100644
index a7c2c54b..00000000
--- a/unfinished/sqlchat/__init__.py
+++ /dev/null
@@ -1,29 +0,0 @@
-import requests
-
-headers = {
- 'authority': 'www.sqlchat.ai',
- 'accept': '*/*',
- 'accept-language': 'en,fr-FR;q=0.9,fr;q=0.8,es-ES;q=0.7,es;q=0.6,en-US;q=0.5,am;q=0.4,de;q=0.3',
- 'content-type': 'text/plain;charset=UTF-8',
- 'origin': 'https://www.sqlchat.ai',
- 'referer': 'https://www.sqlchat.ai/',
- 'sec-fetch-dest': 'empty',
- 'sec-fetch-mode': 'cors',
- 'sec-fetch-site': 'same-origin',
- 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36',
-}
-
-data = {
- 'messages':[
- {'role':'system','content':''},
- {'role':'user','content':'hello world'},
- ],
- 'openAIApiConfig':{
- 'key':'',
- 'endpoint':''
- }
-}
-
-response = requests.post('https://www.sqlchat.ai/api/chat', headers=headers, json=data, stream=True)
-for message in response.iter_content(chunk_size=1024):
- print(message) \ No newline at end of file