summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxtekky <98614666+xtekky@users.noreply.github.com>2023-06-04 00:27:45 +0200
committerGitHub <noreply@github.com>2023-06-04 00:27:45 +0200
commit13e79dfc02b5f9285499eb1b81d73b005b815736 (patch)
tree29168e9e8a7ecafd9832fcadfc65e670a1df6267
parentMerge pull request #626 from cifer-sudo/main (diff)
parentParameter addition uuid (diff)
downloadgpt4free-13e79dfc02b5f9285499eb1b81d73b005b815736.tar
gpt4free-13e79dfc02b5f9285499eb1b81d73b005b815736.tar.gz
gpt4free-13e79dfc02b5f9285499eb1b81d73b005b815736.tar.bz2
gpt4free-13e79dfc02b5f9285499eb1b81d73b005b815736.tar.lz
gpt4free-13e79dfc02b5f9285499eb1b81d73b005b815736.tar.xz
gpt4free-13e79dfc02b5f9285499eb1b81d73b005b815736.tar.zst
gpt4free-13e79dfc02b5f9285499eb1b81d73b005b815736.zip
-rw-r--r--gpt4free/gptworldAi/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gpt4free/gptworldAi/__init__.py b/gpt4free/gptworldAi/__init__.py
index a729fdf8..e7f76c61 100644
--- a/gpt4free/gptworldAi/__init__.py
+++ b/gpt4free/gptworldAi/__init__.py
@@ -6,6 +6,7 @@
@IDE :PyCharm
"""
import json
+import uuid
import random
import binascii
import requests
@@ -30,7 +31,8 @@ class ChatCompletion:
"presence_penalty": 0,
"temperature": 1,
"top_p": 1,
- "stream": True
+ "stream": True,
+ "uuid": str(uuid.uuid4())
})
signature = ChatCompletion.encrypt(data)
res = requests.post(url, headers=headers, data=json.dumps({"signature": signature}), proxies=proxies,stream=True)