Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit fe688b5

Browse files
authored
feat: support disable version check (langgenius#173)
1 parent 056898b commit fe688b5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

api/controllers/console/version.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ def get(self):
1919
args = parser.parse_args()
2020
check_update_url = current_app.config['CHECK_UPDATE_URL']
2121

22+
if not check_update_url:
23+
return {
24+
'version': '0.0.0',
25+
'release_date': '',
26+
'release_notes': '',
27+
'can_auto_update': False
28+
}
29+
2230
try:
2331
response = requests.get(check_update_url, {
2432
'current_version': args.get('current_version')

0 commit comments

Comments
 (0)