Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Playground/OKPlayground/Views/ModelInfoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ struct ModelInfoView: View {
Section("Template") {
Text(modelInfo.template)
}
Section("Capabilities") {
List(modelInfo.capabilities, id: \.rawValue.self){
Text($0.rawValue)
}
}
}

Section {
Expand Down
14 changes: 14 additions & 0 deletions Sources/OllamaKit/Responses/OKModelInfoResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,18 @@ public struct OKModelInfoResponse: Decodable, Sendable {

/// A string detailing the parameters or settings of the model.
public let parameters: String

/// A list of model capabilities (like vision, tools)
public let capabilities: [Capability]

/// An enumeration representing the exact model capability
public enum Capability: String, Decodable, Sendable {
// https://github.com/ollama/ollama/blob/main/types/model/capability.go
case completion
case tools
case insert
case vision
case embedding
case thinking
}
}