fix(g4f/gpt4free/g4f/Provider/Blackbox.py), (session): Update API request data structure

This commit is contained in:
kqlio67 2025-02-10 13:09:00 +02:00
parent 17a0fd78d3
commit ebd8bb44a9

View file

@ -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
}