Mark WilkensXL build versions
Some checks failed
Container Image / build-and-push (push) Has been cancelled
Some checks failed
Container Image / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -994,7 +994,10 @@
|
||||
el.textContent = 'Type /setup, then choose Local models or API.';
|
||||
}
|
||||
fetch('/api/version').then(function(r){return r.json()}).then(function(d){
|
||||
if (d.version) window._appVersion = d.version;
|
||||
var fullVersion = d.full_version || d.build_version || d.version;
|
||||
if (fullVersion) window._appVersion = fullVersion;
|
||||
if (d.upstream_version) window._upstreamVersion = d.upstream_version;
|
||||
if (d.build_flavor) window._buildFlavor = d.build_flavor;
|
||||
}).catch(function(){});
|
||||
})();
|
||||
</script>
|
||||
|
||||
@@ -305,7 +305,11 @@
|
||||
const vr = await fetch('/api/version');
|
||||
if (vr.ok) {
|
||||
const vd = await vr.json();
|
||||
document.getElementById('version-label').textContent = 'v' + vd.version;
|
||||
const version = vd.full_version || vd.build_version || vd.version;
|
||||
const upstream = vd.upstream_version && vd.upstream_version !== version
|
||||
? ' (upstream ' + vd.upstream_version + ')'
|
||||
: '';
|
||||
document.getElementById('version-label').textContent = version ? 'v' + version + upstream : '';
|
||||
}
|
||||
} catch(e) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user