mirror of
https://github.com/ollama/ollama.git
synced 2026-01-29 07:12:03 +03:00
Request fields (experimental): - width: image width (max 4096) - height: image height (max 4096) - steps: denoising steps - seed: random seed Response fields (experimental): - images: base64-encoded generated images - completed: current step progress - total: total steps Other changes: - Fix lifecycle bug where image models wouldn't unload (refCount issue) - Fix "headers already written" error on Ctrl+C during streaming - Add gin middleware for OpenAI /v1/images/generations compatibility - Update CLI to use /api/generate with progress bar - Add preload support in interactive mode
18 lines
455 B
Go
18 lines
455 B
Go
package model
|
|
|
|
type Capability string
|
|
|
|
const (
|
|
CapabilityCompletion = Capability("completion")
|
|
CapabilityTools = Capability("tools")
|
|
CapabilityInsert = Capability("insert")
|
|
CapabilityVision = Capability("vision")
|
|
CapabilityEmbedding = Capability("embedding")
|
|
CapabilityThinking = Capability("thinking")
|
|
CapabilityImage = Capability("image")
|
|
)
|
|
|
|
func (c Capability) String() string {
|
|
return string(c)
|
|
}
|