mirror of
https://github.com/ollama/ollama.git
synced 2025-11-13 05:46:59 +01:00
With support for multimodal models becoming more varied and common it is important for clients to be able to easily see what capabilities a model has. Retuning these from the show endpoint will allow clients to easily see what a model can do.
16 lines
339 B
Go
16 lines
339 B
Go
package model
|
|
|
|
type Capability string
|
|
|
|
const (
|
|
CapabilityCompletion = Capability("completion")
|
|
CapabilityTools = Capability("tools")
|
|
CapabilityInsert = Capability("insert")
|
|
CapabilityVision = Capability("vision")
|
|
CapabilityEmbedding = Capability("embedding")
|
|
)
|
|
|
|
func (c Capability) String() string {
|
|
return string(c)
|
|
}
|