Skip to content

Commit

Permalink
add support for llama vision (gluonfield#165)
Browse files Browse the repository at this point in the history
Co-authored-by: Mattia <[email protected]>
  • Loading branch information
mguella and Mattia authored Nov 7, 2024
1 parent 2207cbb commit 2aa9d14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Enchanted/Services/OllamaService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class OllamaService: @unchecked Sendable {
LanguageModel(
name: $0.name,
provider: .ollama,
imageSupport: $0.details.families?.contains("clip") ?? false
imageSupport: $0.details.families?.contains(where: { $0 == "clip" || $0 == "mllama" }) ?? false
)
}
return models
Expand Down
2 changes: 1 addition & 1 deletion Enchanted/UI/macOS/Components/PromptPanelView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct PromptPanelView: View {

var imageSupportMissing: some View {
HStack {
Text("This model does not support images. Supported models are llava and bakllava.")
Text("This model does not support images. Supported models are llava, bakllava and llama vision.")
.font(.caption2)
Spacer()
}
Expand Down

0 comments on commit 2aa9d14

Please sign in to comment.