Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
gofmt, goimports
Michael Yang6297f8560692
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yamlindex 049a97ed6..dbb6c2fdf 100644--- a/.github/workflows/test.yaml+++ b/.github/workflows/test.yaml@@ -269,9 +269,9 @@ jobs:mkdir -p llm/build/darwin/$ARCH/stub/bintouch llm/build/darwin/$ARCH/stub/bin/ollama_llama_serverif: ${{ startsWith(matrix.os, 'macos-') }}- - uses: golangci/golangci-lint-action@v4+ - uses: golangci/golangci-lint-action@v6with:- args: --timeout 8m0s -v+ args: --timeout 8m0s -v ${{ startsWith(matrix.os, 'windows-') && '' || '--disable gofmt --disable goimports' }}test:strategy:matrix:diff --git a/.golangci.yaml b/.golangci.yamlindex 56a40df17..cfe06e07a 100644--- a/.golangci.yaml+++ b/.golangci.yaml@@ -9,8 +9,9 @@ linters:- contextcheck- exportloopref- gocheckcompilerdirectives- - gofmt- - goimports+ # conditionally enable this on linux/macos+ # - gofmt+ # - goimports- intrange- misspell- nilerrdiff --git a/llm/memory.go b/llm/memory.goindex 8b5d85415..1c2e476be 100644--- a/llm/memory.go+++ b/llm/memory.go@@ -5,9 +5,9 @@ import ("log/slog""github.com/ollama/ollama/api"+ "github.com/ollama/ollama/envconfig""github.com/ollama/ollama/format""github.com/ollama/ollama/gpu"- "github.com/ollama/ollama/envconfig")// This algorithm looks for a complete fit to determine if we need to unload other modelsdiff --git a/server/images.go b/server/images.goindex 6f23f0c11..d1d490610 100644--- a/server/images.go+++ b/server/images.go@@ -24,10 +24,10 @@ import ("github.com/ollama/ollama/api""github.com/ollama/ollama/auth"+ "github.com/ollama/ollama/envconfig""github.com/ollama/ollama/format""github.com/ollama/ollama/llm""github.com/ollama/ollama/parser"- "github.com/ollama/ollama/envconfig""github.com/ollama/ollama/types/errtypes""github.com/ollama/ollama/types/model""github.com/ollama/ollama/version"diff --git a/types/model/name_test.go b/types/model/name_test.goindex 117d6333b..66ce4c339 100644--- a/types/model/name_test.go+++ b/types/model/name_test.go@@ -386,8 +386,8 @@ func FuzzName(f *testing.F) {func TestIsValidNamespace(t *testing.T) {cases := []struct {- username string- expected bool+ username string+ expected bool}{{"", false},{"a", true},