[PR #11329] server: export RegistryOptions to make the public API usable #13509

Open
opened 2026-04-13 00:29:09 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11329

State: open
Merged: No


Export RegistryOptions to allow using the exported image API in the server package.

For example:

package main

import (
	"context"
	"github.com/ollama/ollama/api"
	"github.com/ollama/ollama/server"
)

func main() {
	_ = server.PullModel(context.TODO(), "mistral", &server.RegistryOptions{}, func(a api.ProgressResponse) {})
}

resolves: #11309

**Original Pull Request:** https://github.com/ollama/ollama/pull/11329 **State:** open **Merged:** No --- Export RegistryOptions to allow using the exported image API in the server package. For example: ``` package main import ( "context" "github.com/ollama/ollama/api" "github.com/ollama/ollama/server" ) func main() { _ = server.PullModel(context.TODO(), "mistral", &server.RegistryOptions{}, func(a api.ProgressResponse) {}) } ``` resolves: #11309
GiteaMirror added the pull-request label 2026-04-13 00:29:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13509