Require canary for loading models from packs
This commit is contained in:
committed by
Henry Mercer
parent
8e156d69d7
commit
81e60286f2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user