Limit to v2 models on v2.spacy.io

This commit is contained in:
Adriane Boyd 2021-03-03 09:34:45 +01:00
parent c70e6ee72d
commit 6ffb395d68

View File

@ -68,7 +68,7 @@ function isStableVersion(v) {
function getLatestVersion(modelId, compatibility) {
for (let [version, models] of Object.entries(compatibility)) {
if (isStableVersion(version) && models[modelId]) {
if (version.startsWith('2.') && isStableVersion(version) && models[modelId]) {
const modelVersions = models[modelId]
for (let modelVersion of modelVersions) {
if (isStableVersion(modelVersion)) {