Add environment field to BackendSettings for improved configuration

This commit is contained in:
2025-09-28 13:31:26 +02:00
parent 7994fd05b3
commit 50e1355205

View File

@@ -15,6 +15,7 @@ import (
type BackendSettings struct {
Command string `yaml:"command"`
Args []string `yaml:"args"`
Environment map[string]string `yaml:"environment,omitempty"`
Docker *DockerSettings `yaml:"docker,omitempty"`
}
@@ -137,6 +138,7 @@ func LoadConfig(configPath string) (AppConfig, error) {
LlamaCpp: BackendSettings{
Command: "llama-server",
Args: []string{},
Environment: map[string]string{},
Docker: &DockerSettings{
Enabled: false,
Image: "ghcr.io/ggml-org/llama.cpp:server",