Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
replace x/exp/slices with slices
Michael Yang04f3c12bb716
diff --git a/cmd/cmd.go b/cmd/cmd.goindex b285f83cb..5a4518899 100644--- a/cmd/cmd.go+++ b/cmd/cmd.go@@ -20,6 +20,7 @@ import ("path/filepath""regexp""runtime"+ "slices""strings""syscall""time"@@ -29,7 +30,6 @@ import ("github.com/olekukonko/tablewriter""github.com/spf13/cobra""golang.org/x/crypto/ssh"- "golang.org/x/exp/slices""golang.org/x/term""github.com/ollama/ollama/api"diff --git a/cmd/interactive.go b/cmd/interactive.goindex c055df0ea..80a915474 100644--- a/cmd/interactive.go+++ b/cmd/interactive.go@@ -8,11 +8,11 @@ import ("os""path/filepath""regexp"+ "slices""sort""strings""github.com/spf13/cobra"- "golang.org/x/exp/slices""github.com/ollama/ollama/api""github.com/ollama/ollama/envconfig"diff --git a/llm/payload.go b/llm/payload.goindex abe3d263d..a025ee347 100644--- a/llm/payload.go+++ b/llm/payload.go@@ -10,9 +10,9 @@ import ("os""path/filepath""runtime"+ "slices""strings"- "golang.org/x/exp/slices""golang.org/x/sync/errgroup""github.com/ollama/ollama/gpu"diff --git a/server/images.go b/server/images.goindex 9254671c8..617401261 100644--- a/server/images.go+++ b/server/images.go@@ -18,11 +18,10 @@ import ("os""path/filepath""runtime"+ "slices""strconv""strings"- "golang.org/x/exp/slices"-"github.com/ollama/ollama/api""github.com/ollama/ollama/auth""github.com/ollama/ollama/format"diff --git a/server/routes.go b/server/routes.goindex 7a6dfd1f7..7fcd2f2fb 100644--- a/server/routes.go+++ b/server/routes.go@@ -16,6 +16,7 @@ import ("os""os/signal""path/filepath"+ "slices""strconv""strings""syscall"@@ -23,7 +24,6 @@ import ("github.com/gin-contrib/cors""github.com/gin-gonic/gin"- "golang.org/x/exp/slices""github.com/ollama/ollama/api""github.com/ollama/ollama/envconfig"diff --git a/server/sched.go b/server/sched.goindex 8c72177f2..46fe2f602 100644--- a/server/sched.go+++ b/server/sched.go@@ -7,17 +7,17 @@ import ("log/slog""reflect""runtime"+ "slices""sort""strings""sync""time""github.com/ollama/ollama/api"+ "github.com/ollama/ollama/envconfig""github.com/ollama/ollama/format""github.com/ollama/ollama/gpu""github.com/ollama/ollama/llm"- "github.com/ollama/ollama/envconfig"- "golang.org/x/exp/slices")type LlmRequest struct {