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