Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

bugfix

游雁f9c13d7f4b67
diff --git a/funasr/auto/auto_model.py b/funasr/auto/auto_model.py
index 75324dc86..d0a77337f 100644
--- a/funasr/auto/auto_model.py
+++ b/funasr/auto/auto_model.py
@@ -114,7 +114,7 @@ class AutoModel:
try:
from funasr.utils.version_checker import check_for_update
- check_for_update()
+ check_for_update(disable=kwargs.get("disable_update", False))
except:
pass
diff --git a/funasr/utils/version_checker.py b/funasr/utils/version_checker.py
index 7597530b1..e7008bd59 100644
--- a/funasr/utils/version_checker.py
+++ b/funasr/utils/version_checker.py
@@ -14,7 +14,9 @@ def get_pypi_version(package_name):
raise Exception("Failed to retrieve version information from PyPI.")
-def check_for_update():
+def check_for_update(disable=False):
+ if disable:
+ return
current_version = version.parse(__version__)
pypi_version = get_pypi_version("funasr")