cmd/config: use envconfig.Host() for base API in launch config packages (#13937)

This commit is contained in:
Gabe Goodhart
2026-01-27 14:30:00 -07:00
committed by GitHub
parent 26acab64b7
commit 7b62c41060
5 changed files with 14 additions and 6 deletions

View File

@@ -7,6 +7,8 @@ import (
"os/exec"
"path/filepath"
"slices"
"github.com/ollama/ollama/envconfig"
)
// Droid implements Runner and Editor for Droid integration
@@ -117,7 +119,7 @@ func (d *Droid) Edit(models []string) error {
newModels = append(newModels, modelEntry{
Model: model,
DisplayName: model,
BaseURL: "http://localhost:11434/v1",
BaseURL: envconfig.Host().String() + "/v1",
APIKey: "ollama",
Provider: "generic-chat-completion-api",
MaxOutputTokens: 64000,