XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update (g4f/Provider/Blackbox.py)

c11bac48
kqlio67 <kqlio67@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified g4f/Provider/Blackbox.py +2 -2
@@ -184,7 +184,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
184 184 proxy (Optional[str]): Proxy URL, if needed.
185 185 image (ImageType): Image data to be processed, if any.
186 186 image_name (str): Name of the image file, if an image is provided.
187 websearch (bool): Enables or disables web search mode.
187 web_search (bool): Enables or disables web search mode.
188 188 **kwargs: Additional keyword arguments.
189 189
190 190 Yields:
@@ -311,7 +311,7 @@ class Blackbox(AsyncGeneratorProvider, ProviderModelMixin):
311 311 else:
312 312 yield cleaned_response
313 313 else:
314 if websearch:
314 if web_search:
315 315 match = re.search(r'\$~~~\$(.*?)\$~~~\$', cleaned_response, re.DOTALL)
316 316 if match:
317 317 source_part = match.group(1).strip()