fix: correct project root depth in model_config.py vision check

This commit is contained in:
Roland Tannous 2026-03-07 08:15:29 +00:00
commit 48456070a7

View file

@ -377,7 +377,7 @@ _VLM_MODEL_TYPES = {
}
# Pre-computed project root and .venv_t5 path for subprocess version switching.
_PROJECT_ROOT = str(Path(__file__).resolve().parent.parent.parent.parent)
_PROJECT_ROOT = str(Path(__file__).resolve().parent.parent.parent.parent.parent)
_VENV_T5_DIR = os.path.join(_PROJECT_ROOT, ".venv_t5")
_BACKEND_DIR = os.path.join(_PROJECT_ROOT, "studio", "backend")