fix(dicts): move default dicts directory to data/dicts

Tag dictionaries are lookup data, not model weights — place them
alongside cache.json and metadata.json in the data/ folder instead
of inside the models directory.
This commit is contained in:
CalamitousFelicitousness
2026-03-23 22:25:06 +00:00
parent 9343768d78
commit d26f8560c8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ class Api:
# dicts api
from modules.api import dicts as dicts_api
dicts_api.init(getattr(shared.opts, 'dicts_dir', '') or os.path.join(paths.models_path, 'dicts'))
dicts_api.init(getattr(shared.opts, 'dicts_dir', '') or os.path.join(paths.data_path, 'data', 'dicts'))
dicts_api.register_api(self.app)
# gallery api