Skip to content

Commit

Permalink
Change the model repo storage so we can support users
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas101 committed Oct 18, 2024
1 parent 302857f commit 0d9a519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/native/main/AI/AIModelFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AIModelFileSystem {
* @returns the path to the local model
*/
getModelRepoPath (modelId: string) {
return path.join(Paths.models, sanitizeFilename(modelId))
return path.join(Paths.models, sanitizeFilename(modelId.replaceAll('/', '--')))
}

/**
Expand Down

0 comments on commit 0d9a519

Please sign in to comment.