diff options
-rw-r--r-- | g4f/Provider/Blackbox.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g4f/Provider/Blackbox.py b/g4f/Provider/Blackbox.py index 4811c45e..998ec593 100644 --- a/g4f/Provider/Blackbox.py +++ b/g4f/Provider/Blackbox.py @@ -189,6 +189,8 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin): yield image_response return + response_text = re.sub(r'Generated by BLACKBOX.AI, try unlimited chat https://www.blackbox.ai', '', response_text, flags=re.DOTALL) + json_match = re.search(r'\$~~~\$(.*?)\$~~~\$', response_text, re.DOTALL) if json_match: search_results = json.loads(json_match.group(1)) |