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

XFEstudio/gpt4free

Fix unittests

603fc965
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/providers/response.py +1 -1
@@ -363,7 +363,7 @@ class ImageResponse(MediaResponse):
363 363 """Return images as markdown."""
364 364 if self.get("width") and self.get("height"):
365 365 return "\n".join([
366 f'<a href="{html.escape(url)}" data-width="{self.get('width')}" data-height="{self.get('height')}" data-source="{html.escape(self.get('source_url', ''))}">'
366 f'<a href="{html.escape(url)}" data-width="{self.get("width")}" data-height="{self.get("height")}" data-source="{html.escape(self.get("source_url", ""))}">'
367 367 + f'<img src="{url.replace("/media/", "/thumbnail/")}" alt="{html.escape(self.alt)}"></a>'
368 368 for url in self.get_list()
369 369 ])