Skip to content

Commit

Permalink
Merge pull request xtekky#628 from hpsj/main
Browse files Browse the repository at this point in the history
Parameter addition uuid
  • Loading branch information
xtekky authored Jun 3, 2023
2 parents 940d390 + 86d907d commit 13e79df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gpt4free/gptworldAi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@IDE :PyCharm
"""
import json
import uuid
import random
import binascii
import requests
Expand All @@ -30,7 +31,8 @@ def create(messages:[],proxy: str = None):
"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)
Expand Down

0 comments on commit 13e79df

Please sign in to comment.