diff --git a/packages/hub/src/relative-values/values/ModelEvaluator.ts b/packages/hub/src/relative-values/values/ModelEvaluator.ts index 96a6177a4e..b5035ac94b 100644 --- a/packages/hub/src/relative-values/values/ModelEvaluator.ts +++ b/packages/hub/src/relative-values/values/ModelEvaluator.ts @@ -7,6 +7,8 @@ import { SqStringValue, } from "@quri/squiggle-lang"; +import { squiggleHubLinker } from "@/squiggle/components/linker"; + import { cartesianProduct } from "../lib/utils"; import { RelativeValue, @@ -102,7 +104,10 @@ export class ModelEvaluator { RelativeValuesModelRevision$data["forRelativeValues"] >["cache"] ): Promise> { - const project = SqProject.create(); + // TODO - versioned SqProject + const project = SqProject.create({ + linker: squiggleHubLinker, + }); project.setSource("wrapper", "RelativeValues.wrap(fn)"); project.setContinues("wrapper", ["model"]); project.setSource("model", modelCode);