diff options
author | kqlio67 <kqlio67@users.noreply.github.com> | 2024-11-08 21:31:53 +0100 |
---|---|---|
committer | kqlio67 <kqlio67@users.noreply.github.com> | 2024-11-08 21:31:53 +0100 |
commit | a96f9bdbdfb076e27e1ea36bfc83afef24e0cedc (patch) | |
tree | 4de5310e9e30a8939d207b72e976de8568be905a /g4f/Provider/Blackbox.py | |
parent | refactor(g4f/Provider/Prodia.py): Enhance Prodia image generation parameters (diff) | |
download | gpt4free-a96f9bdbdfb076e27e1ea36bfc83afef24e0cedc.tar gpt4free-a96f9bdbdfb076e27e1ea36bfc83afef24e0cedc.tar.gz gpt4free-a96f9bdbdfb076e27e1ea36bfc83afef24e0cedc.tar.bz2 gpt4free-a96f9bdbdfb076e27e1ea36bfc83afef24e0cedc.tar.lz gpt4free-a96f9bdbdfb076e27e1ea36bfc83afef24e0cedc.tar.xz gpt4free-a96f9bdbdfb076e27e1ea36bfc83afef24e0cedc.tar.zst gpt4free-a96f9bdbdfb076e27e1ea36bfc83afef24e0cedc.zip |
Diffstat (limited to '')
-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)) |