dify/knowledge-fs/apps/api/src/compute-options.ts
Jyong 4ee43b8afc chore: migrate knowledge-fs source tree
Import the committed KnowledgeFS snapshot dc4072ee302317145612087ce7440851dc329fd0 under knowledge-fs/ without its Git history, local IDE settings, or build artifacts.
2026-07-20 04:54:20 -04:00

11 lines
481 B
TypeScript

import { type ComputeRuntime, createTypeScriptComputeRuntime } from "@knowledge/compute";
/**
* The API always owns an in-process, deterministic compute runtime. Keeping this assembly helper
* separate from the gateway preserves a small deployment seam without making compute availability
* depend on generated artifacts, environment flags, or dynamic module loading.
*/
export function createApiComputeRuntime(): ComputeRuntime {
return createTypeScriptComputeRuntime();
}