from OLLAMA_U_R_L to OLLAMA_URL
parent
894536d209
commit
f485b5ea88
|
|
@ -23,7 +23,7 @@ type Config struct {
|
|||
BasicAuthUser string
|
||||
BasicAuthPassword string
|
||||
FillWithTestdata bool
|
||||
OllamaURL string
|
||||
OllamaUrl string
|
||||
OllamaModel string
|
||||
AssetPattern string
|
||||
DatacenterPattern string
|
||||
|
|
@ -129,8 +129,8 @@ func newConfigFromEnv(ctx context.Context, getEnv func(string) string) (Config,
|
|||
}
|
||||
result.storage = storage
|
||||
|
||||
if result.OllamaURL != "" {
|
||||
result.ai = NewAIOllama(result.OllamaURL, result.OllamaModel)
|
||||
if result.OllamaUrl != "" {
|
||||
result.ai = NewAIOllama(result.OllamaUrl, result.OllamaModel)
|
||||
} else {
|
||||
result.ai = NewAINoop()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue