mirror of
https://github.com/ollama/ollama.git
synced 2025-11-10 23:37:17 +01:00
openai: allow openai endpoint to accept webp images (#11412)
Co-authored-by: Richard Lyons <frob@cloudstaff.com>
This commit is contained in:
@@ -423,7 +423,7 @@ func fromChatRequest(r ChatCompletionRequest) (*api.ChatRequest, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
types := []string{"jpeg", "jpg", "png"}
|
types := []string{"jpeg", "jpg", "png", "webp"}
|
||||||
valid := false
|
valid := false
|
||||||
for _, t := range types {
|
for _, t := range types {
|
||||||
prefix := "data:image/" + t + ";base64,"
|
prefix := "data:image/" + t + ";base64,"
|
||||||
|
|||||||
Reference in New Issue
Block a user