fix: 改进图片显示和移除调试输出

优化图片链接格式,在图片前后添加空行以改善显示效果
注释掉OpenAI聊天服务中的调试打印语句
This commit is contained in:
snaily
2025-03-22 03:38:45 +08:00
parent 89b9f7919a
commit 60dca70fcd
2 changed files with 2 additions and 2 deletions

View File

@@ -209,7 +209,7 @@ def _extract_image_data(part: dict) -> str:
bytes_data = base64.b64decode(base64_data)
upload_response = image_uploader.upload(bytes_data,filename)
if upload_response.success:
text = f"![image]({upload_response.data.url})"
text = f"\n\n![image]({upload_response.data.url})\n\n"
else:
text = ""
return text