mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 06:47:26 +00:00
fix: 修复 gemini 文件类型不支持 image/jpg
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user