summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/openai/proofofwork.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-05-15 02:28:45 +0200
committerGitHub <noreply@github.com>2024-05-15 02:28:45 +0200
commit008ed60d980efcca18977da93caac14c6526e2bd (patch)
tree3dcae2aaf84bb7b7e0c44b76e563313e6ad364b1 /g4f/Provider/openai/proofofwork.py
parentgpt-4o (beta) (diff)
parentUpdate chatgpt url, uvloop support (diff)
downloadgpt4free-008ed60d980efcca18977da93caac14c6526e2bd.tar
gpt4free-008ed60d980efcca18977da93caac14c6526e2bd.tar.gz
gpt4free-008ed60d980efcca18977da93caac14c6526e2bd.tar.bz2
gpt4free-008ed60d980efcca18977da93caac14c6526e2bd.tar.lz
gpt4free-008ed60d980efcca18977da93caac14c6526e2bd.tar.xz
gpt4free-008ed60d980efcca18977da93caac14c6526e2bd.tar.zst
gpt4free-008ed60d980efcca18977da93caac14c6526e2bd.zip
Diffstat (limited to 'g4f/Provider/openai/proofofwork.py')
-rw-r--r--g4f/Provider/openai/proofofwork.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/g4f/Provider/openai/proofofwork.py b/g4f/Provider/openai/proofofwork.py
index e44ef6f7..51d96bc4 100644
--- a/g4f/Provider/openai/proofofwork.py
+++ b/g4f/Provider/openai/proofofwork.py
@@ -16,12 +16,9 @@ def generate_proof_token(required: bool, seed: str, difficulty: str, user_agent:
# Get current UTC time
now_utc = datetime.now(timezone.utc)
- # Convert UTC time to Eastern Time
- now_et = now_utc.astimezone(timezone(timedelta(hours=-5)))
+ parse_time = now_utc.strftime('%a, %d %b %Y %H:%M:%S GMT')
- parse_time = now_et.strftime('%a, %d %b %Y %H:%M:%S GMT')
-
- config = [core + screen, parse_time, 4294705152, 0, user_agent]
+ config = [core + screen, parse_time, None, 0, user_agent, "https://tcr9i.chat.openai.com/v2/35536E1E-65B4-4D96-9D97-6ADB7EFF8147/api.js","dpl=53d243de46ff04dadd88d293f088c2dd728f126f","en","en-US",442,"pluginsāˆ’[object PluginArray]","","alert"]
diff_len = len(difficulty) // 2