Require canary for loading models from packs

This commit is contained in:
Henry Mercer
2021-11-30 17:42:29 +00:00
committed by Henry Mercer
parent 8e156d69d7
commit 81e60286f2

View File

@@ -622,6 +622,7 @@ export async function compileAndRunQueryAgainstDatabase(
// work with hidden settings, so we manually check that the workspace is trusted before looking at
// whether the `shouldInsecurelyLoadMlModelsFromPacks` setting is enabled.
if (workspace.isTrusted &&
config.isCanary() &&
config.shouldInsecurelyLoadMlModelsFromPacks() &&
await cliServer.cliConstraints.supportsResolveMlModels()) {
try {