You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
405 B
25 lines
405 B
3 weeks ago
|
package runner
|
||
|
|
||
|
import (
|
||
|
"github.com/ollama/ollama/runner/llamarunner"
|
||
|
"github.com/ollama/ollama/runner/ollamarunner"
|
||
|
)
|
||
|
|
||
|
func Execute(args []string) error {
|
||
|
if args[0] == "runner" {
|
||
|
args = args[1:]
|
||
|
}
|
||
|
|
||
|
var newRunner bool
|
||
|
if args[0] == "--ollama-engine" {
|
||
|
args = args[1:]
|
||
|
newRunner = true
|
||
|
}
|
||
|
|
||
|
if newRunner {
|
||
|
return ollamarunner.Execute(args)
|
||
|
} else {
|
||
|
return llamarunner.Execute(args)
|
||
|
}
|
||
|
}
|