mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Update (g4f/Provider/Blackbox.py)
This commit is contained in:
parent
eaaa53d701
commit
75316a233b
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
|
||||||
async def fetch_validated(cls):
|
async def fetch_validated(cls):
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
try:
|
try:
|
||||||
async with session.get('https://www.blackbox.ai/_next/static/chunks/2052-0407a0af8bffe0a9.js') as response:
|
async with session.get('https://www.blackbox.ai/_next/static/chunks/2052-cdfeaea1ea292ff5.js') as response:
|
||||||
page_content = await response.text()
|
page_content = await response.text()
|
||||||
validated_match = re.search(r'w="([0-9a-fA-F-]{36})"', page_content)
|
validated_match = re.search(r'w="([0-9a-fA-F-]{36})"', page_content)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue