mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 02:46:35 +03:00
Restrict website to 3.0 models until 3.1 release
This commit is contained in:
parent
5467bd3655
commit
a13f29bb54
|
@ -96,7 +96,7 @@ function isStableVersion(v) {
|
|||
|
||||
function getLatestVersion(modelId, compatibility, prereleases) {
|
||||
for (let [version, models] of Object.entries(compatibility)) {
|
||||
if (isStableVersion(version) && models[modelId]) {
|
||||
if (version.startsWith('3.0') && isStableVersion(version) && models[modelId]) {
|
||||
const modelVersions = models[modelId]
|
||||
for (let modelVersion of modelVersions) {
|
||||
if (isStableVersion(modelVersion) || prereleases) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user