refactor(rag, minimax): silence HF Hub warnings and strictly filter highspeed models
This commit is contained in:
@@ -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
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user