Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: support disable version check (#173)

John Wangfe688b505ab6
diff --git a/api/controllers/console/version.py b/api/controllers/console/version.py
index 0e6e75c3614..285cdcba5c0 100644
--- a/api/controllers/console/version.py
+++ b/api/controllers/console/version.py
@@ -19,6 +19,14 @@ class VersionApi(Resource):
args = parser.parse_args()
check_update_url = current_app.config['CHECK_UPDATE_URL']
+ if not check_update_url:
+ return {
+ 'version': '0.0.0',
+ 'release_date': '',
+ 'release_notes': '',
+ 'can_auto_update': False
+ }
+
try:
response = requests.get(check_update_url, {
'current_version': args.get('current_version')