Skip to content

feat(ollamakit): add Images field to GenerateOptions for vision models - #77

Merged
danieljustus merged 1 commit into
mainfrom
agent/ollamakit-images
Jul 31, 2026
Merged

feat(ollamakit): add Images field to GenerateOptions for vision models#77
danieljustus merged 1 commit into
mainfrom
agent/ollamakit-images

Conversation

@danieljustus

Copy link
Copy Markdown
Owner

Summary

Implements #73: extends GenerateOptions with an Images field for vision-capable models.

Changes

  • GenerateOptions.Images []string — base64-encoded images, forwarded as images in the /api/generate request body
  • Additive / backward-compatible: nil or empty Images omits the key entirely — existing text-only callers are unaffected
  • Test: covers nil, empty, and populated Images scenarios (request body verified server-side)

Testing

make test   # all 16 packages pass, including ollamakit
CGO_ENABLED=0 go build ./...   # passes

Closes

Closes #73

#73)

- Add Images []string to GenerateOptions with 'omitempty' JSON tag
- Forward non-empty Images as 'images' in /api/generate request body
- Existing text-only callers unaffected: nil/empty Images omits the key
- Test covers nil, empty, and populated Images scenarios

Additive API change, SemVer-Minor.
@danieljustus danieljustus added the auto-pr Pull request created by automated tooling label Jul 31, 2026
@danieljustus
danieljustus merged commit 2ba377c into main Jul 31, 2026
8 checks passed
@danieljustus
danieljustus deleted the agent/ollamakit-images branch July 31, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-pr Pull request created by automated tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ollamakit: Bild-Eingaben (Vision) in GenerateOptions ergänzen

1 participant