mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-05-12 02:19:59 +08:00
fix: 改进图片显示和移除调试输出
优化图片链接格式,在图片前后添加空行以改善显示效果 注释掉OpenAI聊天服务中的调试打印语句
This commit is contained in:
@@ -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""
|
||||
text = f"\n\n\n\n"
|
||||
else:
|
||||
text = ""
|
||||
return text
|
||||
|
||||
Reference in New Issue
Block a user