Skip to content

Commit

Permalink
Using new lmstudio model path. (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuho authored Jan 28, 2025
1 parent 8499143 commit 621995c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func main() {
app.ollamaModelsDir = filepath.Join(utils.GetHomeDir(), ".ollama", "models")
}
if *lmStudioDirFlag == "" {
app.lmStudioModelsDir = filepath.Join(utils.GetHomeDir(), ".cache", "lm-studio", "models")
app.lmStudioModelsDir = filepath.Join(utils.GetHomeDir(), ".lmstudio", "models")
}

if *listFlag {
Expand Down Expand Up @@ -346,9 +346,9 @@ func main() {
}
// link all models
for _, model := range models {
// if cfg.LMStudioFilePaths is empty, use the default path in the user's home directory / .cache / lm-studio / models
// if cfg.LMStudioFilePaths is empty, use the default path in the user's home directory / .lmstudio / models
if cfg.LMStudioFilePaths == "" {
cfg.LMStudioFilePaths = filepath.Join(utils.GetHomeDir(), ".cache", "lm-studio", "models")
cfg.LMStudioFilePaths = filepath.Join(utils.GetHomeDir(), ".lmstudio", "models")
}
message, err := linkModel(model.Name, cfg.LMStudioFilePaths, false, client)
logging.InfoLogger.Println(message)
Expand Down

0 comments on commit 621995c

Please sign in to comment.