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

XFEstudio/gpt4free

Update g4f/image/__init__.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

6935580b
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/image/__init__.py +1 -1
@@ -237,7 +237,7 @@ def detect_file_type(binary_data: bytes) -> tuple[str, str] | None:
237 237 elif binary_data.startswith(b"%PDF"):
238 238 return ".pdf", "application/pdf"
239 239 elif binary_data.startswith(b"PK\x03\x04"):
240 return".zip", "application/zip-based",
240 return ".zip", "application/zip-based"
241 241 # could be docx/xlsx/pptx/jar/apk/odt
242 242 elif binary_data.startswith(b"\xd0\xcf\x11\xe0"):
243 243 return ".doc", "application/vnd.ms-office"