mirror of
https://github.com/ollama/ollama.git
synced 2026-10-20 18:41:17 +00:00
openai: allow openai endpoint to accept webp images (#11412)
Co-authored-by: Richard Lyons <frob@cloudstaff.com>
This commit is contained in:
parent
e840ccb523
commit
5e67f4f90e
1 changed files with 1 additions and 1 deletions
|
|
@ -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,"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue