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

XFEstudio/gpt4free

feat(g4f/api/__init__.py): Update image generation response format

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

代码差异

1 个文件 +1 -1
Modified g4f/api/__init__.py +1 -1
@@ -223,7 +223,7 @@ class Api:
223 223 response_format=config.response_format
224 224 )
225 225 # Convert Image objects to dictionaries
226 response_data = [image.to_dict() for image in response.data]
226 response_data = [{"url": image.url, "b64_json": image.b64_json} for image in response.data]
227 227 return JSONResponse({"data": response_data})
228 228 except Exception as e:
229 229 logging.exception(e)