Jelajahi Sumber

Merge pull request #1934 from jmorganca/mxyng/fix-slices

fix build and lint
Michael Yang 1 tahun lalu
induk
melakukan
f84537e0e0
2 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 1 0
      llm/llm.go
  2. 2 2
      llm/payload_common.go

+ 1 - 0
llm/llm.go

@@ -2,6 +2,7 @@ package llm
 
 import (
 	"context"
+	"fmt"
 	"log"
 	"os"
 	"runtime"

+ 2 - 2
llm/payload_common.go

@@ -3,13 +3,13 @@ package llm
 import (
 	"errors"
 	"fmt"
+	"golang.org/x/exp/slices"
 	"io"
 	"io/fs"
 	"log"
 	"os"
 	"path/filepath"
 	"runtime"
-	"slices"
 	"strings"
 
 	"github.com/jmorganca/ollama/gpu"
@@ -76,7 +76,7 @@ func getDynLibs(gpuInfo gpu.GpuInfo) []string {
 		}
 	}
 
-	// Finaly, if we didn't find any matches, LCD CPU FTW
+	// Finally, if we didn't find any matches, LCD CPU FTW
 	if len(dynLibs) == 0 {
 		dynLibs = []string{availableDynLibs["cpu"]}
 	}