summaryrefslogtreecommitdiffstats
path: root/unfinished/openprompt/main.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-27 20:16:07 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-27 20:16:07 +0200
commit10104774c10cccf95bbebcafd17c0a85207583e0 (patch)
tree6fec52831117ee43fe7141a153b7e123ff09d469 /unfinished/openprompt/main.py
parent_ (diff)
parentMerge pull request #205 from AymaneHrouch/reformat__code (diff)
downloadgpt4free-10104774c10cccf95bbebcafd17c0a85207583e0.tar
gpt4free-10104774c10cccf95bbebcafd17c0a85207583e0.tar.gz
gpt4free-10104774c10cccf95bbebcafd17c0a85207583e0.tar.bz2
gpt4free-10104774c10cccf95bbebcafd17c0a85207583e0.tar.lz
gpt4free-10104774c10cccf95bbebcafd17c0a85207583e0.tar.xz
gpt4free-10104774c10cccf95bbebcafd17c0a85207583e0.tar.zst
gpt4free-10104774c10cccf95bbebcafd17c0a85207583e0.zip
Diffstat (limited to 'unfinished/openprompt/main.py')
-rw-r--r--unfinished/openprompt/main.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/unfinished/openprompt/main.py b/unfinished/openprompt/main.py
index 2fa4508e..e68a3b63 100644
--- a/unfinished/openprompt/main.py
+++ b/unfinished/openprompt/main.py
@@ -30,8 +30,7 @@ json_data = {
],
}
-response = requests.post('https://openprompt.co/api/chat2', cookies=cookies, headers=headers, json=json_data, stream=True)
+response = requests.post('https://openprompt.co/api/chat2', cookies=cookies, headers=headers, json=json_data,
+ stream=True)
for chunk in response.iter_content(chunk_size=1024):
print(chunk)
-
-