Merge pull request #491 from willmiao/codex/replace-spaces-in-embedding-paths

Fix embedding relative paths by replacing spaces
This commit is contained in:
pixelpaws
2025-09-26 09:06:56 +08:00
committed by GitHub
4 changed files with 55 additions and 1 deletions

View File

@@ -388,7 +388,10 @@ class DownloadManager:
formatted_path = formatted_path.replace('{base_model}', mapped_base_model)
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
async def _execute_download(self, download_url: str, save_dir: str,