fix: use envconfig.ModelsDir directly (#4821)

* Co-authored-by: Anatoli Babenia <anatoli@rainforce.org>

Co-authored-by: Maas Lalani <maas@lalani.dev>
This commit is contained in:
Anatoli Babenia
2024-07-04 01:36:11 +03:00
committed by GitHub
parent 8072e205ff
commit 0d16eb310e
2 changed files with 5 additions and 20 deletions

View File

@@ -43,10 +43,10 @@ var (
MaxRunners int
// Set via OLLAMA_MAX_QUEUE in the environment
MaxQueuedRequests int
// Set via OLLAMA_MODELS in the environment
ModelsDir string
// Set via OLLAMA_MAX_VRAM in the environment
MaxVRAM uint64
// Set via OLLAMA_MODELS in the environment
ModelsDir string
// Set via OLLAMA_NOHISTORY in the environment
NoHistory bool
// Set via OLLAMA_NOPRUNE in the environment