fix(embeddings): replace spaces in relative paths

This commit is contained in:
pixelpaws
2025-09-26 09:02:46 +08:00
parent 141f83065f
commit 8e4927600f
4 changed files with 55 additions and 1 deletions

View File

@@ -189,6 +189,9 @@ def calculate_relative_path_for_model(model_data: Dict, model_type: str = 'lora'
formatted_path = formatted_path.replace('{first_tag}', first_tag)
formatted_path = formatted_path.replace('{author}', author)
if model_type == 'embedding':
formatted_path = formatted_path.replace(' ', '_')
return formatted_path
def remove_empty_dirs(path):