diff options
author | hp256 <971748116@qq.com> | 2023-05-30 02:33:44 +0200 |
---|---|---|
committer | hp256 <971748116@qq.com> | 2023-05-30 02:33:44 +0200 |
commit | 86d907dade4997e501b0edfb87e9e90f22007e93 (patch) | |
tree | da155b69c1155b77d419258d9d283221308bcfd2 | |
parent | Merge pull request #532 from with1874/main (diff) | |
download | gpt4free-86d907dade4997e501b0edfb87e9e90f22007e93.tar gpt4free-86d907dade4997e501b0edfb87e9e90f22007e93.tar.gz gpt4free-86d907dade4997e501b0edfb87e9e90f22007e93.tar.bz2 gpt4free-86d907dade4997e501b0edfb87e9e90f22007e93.tar.lz gpt4free-86d907dade4997e501b0edfb87e9e90f22007e93.tar.xz gpt4free-86d907dade4997e501b0edfb87e9e90f22007e93.tar.zst gpt4free-86d907dade4997e501b0edfb87e9e90f22007e93.zip |
-rw-r--r-- | gpt4free/gptworldAi/__init__.py | 4 |
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) |