rerefactor

This commit is contained in:
Michael Yang
2024-02-14 11:29:49 -08:00
committed by jmorganca
parent 823a520266
commit e43648afe5
9 changed files with 224 additions and 251 deletions

View File

@@ -25,7 +25,6 @@ import (
"golang.org/x/exp/slices"
"github.com/jmorganca/ollama/api"
"github.com/jmorganca/ollama/auth"
"github.com/jmorganca/ollama/gpu"
"github.com/jmorganca/ollama/llm"
"github.com/jmorganca/ollama/openai"
@@ -480,7 +479,7 @@ func PullModelHandler(c *gin.Context) {
ch <- r
}
regOpts := &auth.RegistryOptions{
regOpts := &registryOptions{
Insecure: req.Insecure,
}
@@ -529,7 +528,7 @@ func PushModelHandler(c *gin.Context) {
ch <- r
}
regOpts := &auth.RegistryOptions{
regOpts := &registryOptions{
Insecure: req.Insecure,
}