Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
5e67f4f9
Unverified
Commit
5e67f4f9
authored
Jul 17, 2025
by
frob
Committed by
GitHub
Jul 16, 2025
Browse files
openai: allow openai endpoint to accept webp images (#11412)
Co-authored-by:
Richard Lyons
<
frob@cloudstaff.com
>
parent
e840ccb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openai/openai.go
openai/openai.go
+1
-1
No files found.
openai/openai.go
View file @
5e67f4f9
...
...
@@ -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,"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment