refactor(rag, minimax): silence HF Hub warnings and strictly filter highspeed models

This commit is contained in:
2026-05-10 14:10:29 -04:00
parent ed95549f0a
commit 504c1afaa9
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -6,6 +6,11 @@ project_root = os.path.dirname(os.path.abspath(__file__))
if project_root not in sys.path: if project_root not in sys.path:
sys.path.insert(0, project_root) sys.path.insert(0, project_root)
# Suppress Hugging Face Hub warnings and progress bars
os.environ["HF_HUB_DISABLE_SYMLINKS_WARNING"] = "1"
os.environ["HF_HUB_DISABLE_PROGRESS_BARS"] = "1"
os.environ["TOKENIZERS_PARALLELISM"] = "false"
from src.gui_2 import main from src.gui_2 import main
if __name__ == "__main__": if __name__ == "__main__":
+1 -1
View File
@@ -596,7 +596,7 @@ def _list_minimax_models(api_key: str) -> list[str]:
return sorted(found) return sorted(found)
except Exception: except Exception:
pass pass
return ["MiniMax-M2.7", "MiniMax-M2.5", "MiniMax-M2.5-highspeed", "MiniMax-M2.1", "MiniMax-M2.1-highspeed", "MiniMax-M2"] return ["MiniMax-M2.7", "MiniMax-M2.5", "MiniMax-M2.1", "MiniMax-M2"]
TOOL_NAME: str = "run_powershell" TOOL_NAME: str = "run_powershell"