mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 09:04:27 +00:00
Add environment field to BackendSettings for improved configuration
This commit is contained in:
@@ -15,6 +15,7 @@ import (
|
|||||||
type BackendSettings struct {
|
type BackendSettings struct {
|
||||||
Command string `yaml:"command"`
|
Command string `yaml:"command"`
|
||||||
Args []string `yaml:"args"`
|
Args []string `yaml:"args"`
|
||||||
|
Environment map[string]string `yaml:"environment,omitempty"`
|
||||||
Docker *DockerSettings `yaml:"docker,omitempty"`
|
Docker *DockerSettings `yaml:"docker,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,6 +138,7 @@ func LoadConfig(configPath string) (AppConfig, error) {
|
|||||||
LlamaCpp: BackendSettings{
|
LlamaCpp: BackendSettings{
|
||||||
Command: "llama-server",
|
Command: "llama-server",
|
||||||
Args: []string{},
|
Args: []string{},
|
||||||
|
Environment: map[string]string{},
|
||||||
Docker: &DockerSettings{
|
Docker: &DockerSettings{
|
||||||
Enabled: false,
|
Enabled: false,
|
||||||
Image: "ghcr.io/ggml-org/llama.cpp:server",
|
Image: "ghcr.io/ggml-org/llama.cpp:server",
|
||||||
|
|||||||
Reference in New Issue
Block a user