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
e6d2d041
Unverified
Commit
e6d2d041
authored
May 02, 2025
by
frob
Committed by
GitHub
May 01, 2025
Browse files
image: add vision capability for projector-based models (#10509)
Co-authored-by:
Richard Lyons
<
frob@cloudstaff.com
>
parent
074bac84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
server/images.go
server/images.go
+5
-0
No files found.
server/images.go
View file @
e6d2d041
...
...
@@ -106,6 +106,11 @@ func (m *Model) Capabilities() []model.Capability {
capabilities
=
append
(
capabilities
,
model
.
CapabilityInsert
)
}
// Check for vision capability in projector-based models
if
len
(
m
.
ProjectorPaths
)
>
0
{
capabilities
=
append
(
capabilities
,
model
.
CapabilityVision
)
}
return
capabilities
}
...
...
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