mirror of
https://github.com/ollama/ollama.git
synced 2026-02-07 14:13:29 -05:00
24 lines
460 B
Go
24 lines
460 B
Go
package runner
|
|
|
|
import (
|
|
"github.com/ollama/ollama/runner/llamarunner"
|
|
"github.com/ollama/ollama/runner/ollamarunner"
|
|
"github.com/ollama/ollama/x/imagegen"
|
|
)
|
|
|
|
func Execute(args []string) error {
|
|
if args[0] == "runner" {
|
|
args = args[1:]
|
|
}
|
|
|
|
if len(args) > 0 {
|
|
switch args[0] {
|
|
case "--ollama-engine":
|
|
return ollamarunner.Execute(args[1:])
|
|
case "--imagegen-engine":
|
|
return imagegen.Execute(args[1:])
|
|
}
|
|
}
|
|
return llamarunner.Execute(args)
|
|
}
|