From ebd8bb44a9a838ee368e25aee403afbfa09ca218 Mon Sep 17 00:00:00 2001 From: kqlio67 <> Date: Mon, 10 Feb 2025 13:09:00 +0200 Subject: fix(g4f/gpt4free/g4f/Provider/Blackbox.py), (session): Update API request data structure --- g4f/Provider/Blackbox.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'g4f/Provider') diff --git a/g4f/Provider/Blackbox.py b/g4f/Provider/Blackbox.py index 81f7c232..55905ecc 100644 --- a/g4f/Provider/Blackbox.py +++ b/g4f/Provider/Blackbox.py @@ -286,7 +286,9 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): "vscodeClient": False, "codeInterpreterMode": False, "customProfile": {"name": "", "occupation": "", "traits": [], "additionalInfo": "", "enableNewChats": False}, - "session": {"user":{"name":"John Doe","email":"john.doe@gmail.com","image":"https://lh3.googleusercontent.com/a/ACg8ocK9X7mNpQ2vR4jH3tY8wL5nB1xM6fDS9JW2kLpTn4Vy3hR2xN4m=s96-c","subscriptionStatus":"PREMIUM"},"expires":datetime.now(timezone.utc).isoformat(timespec='milliseconds').replace('+00:00', 'Z')}, + "session": {"user":{"name":"John Doe","email":"john.doe@gmail.com","image":"https://lh3.googleusercontent.com/a/ACg8ocK9X7mNpQ2vR4jH3tY8wL5nB1xM6fDS9JW2kLpTn4Vy3hR2xN4m=s96-c"},"expires":datetime.now(timezone.utc).isoformat(timespec='milliseconds').replace('+00:00', 'Z')}, + "isPremium": True, + "subscriptionCache": None, "webSearchMode": False } -- cgit v1.2.3