Commit 43f5433e by Calcium-Ion Committed by GitHub

Merge pull request #2578 from xyfacai/fix/gemini-mimetype

fix: 修复 gemini 文件类型不支持 image/jpg
parents be2fdcea eeccb214
...@@ -32,6 +32,7 @@ var geminiSupportedMimeTypes = map[string]bool{ ...@@ -32,6 +32,7 @@ var geminiSupportedMimeTypes = map[string]bool{
"audio/wav": true, "audio/wav": true,
"image/png": true, "image/png": true,
"image/jpeg": true, "image/jpeg": true,
"image/jpg": true, // support old image/jpeg
"image/webp": true, "image/webp": true,
"text/plain": true, "text/plain": true,
"video/mov": true, "video/mov": true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment