Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
04f3c12b
Commit
04f3c12b
authored
May 21, 2024
by
Michael Yang
Browse files
replace x/exp/slices with slices
parent
60323e08
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
8 deletions
+7
-8
cmd/cmd.go
cmd/cmd.go
+1
-1
cmd/interactive.go
cmd/interactive.go
+1
-1
llm/payload.go
llm/payload.go
+1
-1
server/images.go
server/images.go
+1
-2
server/routes.go
server/routes.go
+1
-1
server/sched.go
server/sched.go
+2
-2
No files found.
cmd/cmd.go
View file @
04f3c12b
...
@@ -20,6 +20,7 @@ import (
...
@@ -20,6 +20,7 @@ import (
"path/filepath"
"path/filepath"
"regexp"
"regexp"
"runtime"
"runtime"
"slices"
"strings"
"strings"
"syscall"
"syscall"
"time"
"time"
...
@@ -29,7 +30,6 @@ import (
...
@@ -29,7 +30,6 @@ import (
"github.com/olekukonko/tablewriter"
"github.com/olekukonko/tablewriter"
"github.com/spf13/cobra"
"github.com/spf13/cobra"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh"
"golang.org/x/exp/slices"
"golang.org/x/term"
"golang.org/x/term"
"github.com/ollama/ollama/api"
"github.com/ollama/ollama/api"
...
...
cmd/interactive.go
View file @
04f3c12b
...
@@ -8,11 +8,11 @@ import (
...
@@ -8,11 +8,11 @@ import (
"os"
"os"
"path/filepath"
"path/filepath"
"regexp"
"regexp"
"slices"
"sort"
"sort"
"strings"
"strings"
"github.com/spf13/cobra"
"github.com/spf13/cobra"
"golang.org/x/exp/slices"
"github.com/ollama/ollama/api"
"github.com/ollama/ollama/api"
"github.com/ollama/ollama/envconfig"
"github.com/ollama/ollama/envconfig"
...
...
llm/payload.go
View file @
04f3c12b
...
@@ -10,9 +10,9 @@ import (
...
@@ -10,9 +10,9 @@ import (
"os"
"os"
"path/filepath"
"path/filepath"
"runtime"
"runtime"
"slices"
"strings"
"strings"
"golang.org/x/exp/slices"
"golang.org/x/sync/errgroup"
"golang.org/x/sync/errgroup"
"github.com/ollama/ollama/gpu"
"github.com/ollama/ollama/gpu"
...
...
server/images.go
View file @
04f3c12b
...
@@ -18,11 +18,10 @@ import (
...
@@ -18,11 +18,10 @@ import (
"os"
"os"
"path/filepath"
"path/filepath"
"runtime"
"runtime"
"slices"
"strconv"
"strconv"
"strings"
"strings"
"golang.org/x/exp/slices"
"github.com/ollama/ollama/api"
"github.com/ollama/ollama/api"
"github.com/ollama/ollama/auth"
"github.com/ollama/ollama/auth"
"github.com/ollama/ollama/format"
"github.com/ollama/ollama/format"
...
...
server/routes.go
View file @
04f3c12b
...
@@ -16,6 +16,7 @@ import (
...
@@ -16,6 +16,7 @@ import (
"os"
"os"
"os/signal"
"os/signal"
"path/filepath"
"path/filepath"
"slices"
"strconv"
"strconv"
"strings"
"strings"
"syscall"
"syscall"
...
@@ -23,7 +24,6 @@ import (
...
@@ -23,7 +24,6 @@ import (
"github.com/gin-contrib/cors"
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin"
"golang.org/x/exp/slices"
"github.com/ollama/ollama/api"
"github.com/ollama/ollama/api"
"github.com/ollama/ollama/envconfig"
"github.com/ollama/ollama/envconfig"
...
...
server/sched.go
View file @
04f3c12b
...
@@ -7,17 +7,17 @@ import (
...
@@ -7,17 +7,17 @@ import (
"log/slog"
"log/slog"
"reflect"
"reflect"
"runtime"
"runtime"
"slices"
"sort"
"sort"
"strings"
"strings"
"sync"
"sync"
"time"
"time"
"github.com/ollama/ollama/api"
"github.com/ollama/ollama/api"
"github.com/ollama/ollama/envconfig"
"github.com/ollama/ollama/format"
"github.com/ollama/ollama/format"
"github.com/ollama/ollama/gpu"
"github.com/ollama/ollama/gpu"
"github.com/ollama/ollama/llm"
"github.com/ollama/ollama/llm"
"github.com/ollama/ollama/envconfig"
"golang.org/x/exp/slices"
)
)
type
LlmRequest
struct
{
type
LlmRequest
struct
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment