Revert "Reapply "don't require pulling stubs for cloud models"" (#14606)

This reverts commit 799e51d419.
This commit is contained in:
Jeffrey Morgan
2026-03-03 20:56:10 -08:00
committed by GitHub
parent e9f6ea232f
commit 39982a954e
23 changed files with 114 additions and 2849 deletions

View File

@@ -17,7 +17,6 @@ import (
"github.com/ollama/ollama/api"
"github.com/ollama/ollama/envconfig"
internalcloud "github.com/ollama/ollama/internal/cloud"
"github.com/ollama/ollama/internal/modelref"
"github.com/ollama/ollama/logutil"
)
@@ -920,7 +919,7 @@ func hasWebSearchTool(tools []anthropic.Tool) bool {
}
func isCloudModelName(name string) bool {
return modelref.HasExplicitCloudSource(name)
return strings.HasSuffix(name, ":cloud") || strings.HasSuffix(name, "-cloud")
}
// extractQueryFromToolCall extracts the search query from a web_search tool call