Skip to content

Commit 5e67f4f

Browse files
openai: allow openai endpoint to accept webp images (ollama#11412)
Co-authored-by: Richard Lyons <[email protected]>
1 parent e840ccb commit 5e67f4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openai/openai.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ func fromChatRequest(r ChatCompletionRequest) (*api.ChatRequest, error) {
423423
}
424424
}
425425

426-
types := []string{"jpeg", "jpg", "png"}
426+
types := []string{"jpeg", "jpg", "png", "webp"}
427427
valid := false
428428
for _, t := range types {
429429
prefix := "data:image/" + t + ";base64,"

0 commit comments

Comments
 (0)