Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

openai: allow openai endpoint to accept webp images (#11412)

frob5e67f4f90e13
diff --git a/openai/openai.go b/openai/openai.go
index 012189d23..35b8b9a01 100644
--- a/openai/openai.go
+++ b/openai/openai.go
@@ -423,7 +423,7 @@ func fromChatRequest(r ChatCompletionRequest) (*api.ChatRequest, error) {
}
}
- types := []string{"jpeg", "jpg", "png"}
+ types := []string{"jpeg", "jpg", "png", "webp"}
valid := false
for _, t := range types {
prefix := "data:image/" + t + ";base64,"