Skip to content

Commit

Permalink
replace x/exp/slices with slices
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyng committed Jun 4, 2024
1 parent 60323e0 commit 04f3c12
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"path/filepath"
"regexp"
"runtime"
"slices"
"strings"
"syscall"
"time"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cmd/interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion llm/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions server/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion server/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import (
"os"
"os/signal"
"path/filepath"
"slices"
"strconv"
"strings"
"syscall"
"time"

"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"
Expand Down
4 changes: 2 additions & 2 deletions server/sched.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 04f3c12

Please sign in to comment.