Unverified Commit 5e67f4f9 authored by frob's avatar frob Committed by GitHub
Browse files

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


Co-authored-by: default avatarRichard Lyons <frob@cloudstaff.com>
parent e840ccb5
......@@ -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,"
......
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 to comment