mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 11:04:27 +08:00
Import the committed KnowledgeFS snapshot dc4072ee302317145612087ce7440851dc329fd0 under knowledge-fs/ without its Git history, local IDE settings, or build artifacts.
11 lines
481 B
TypeScript
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();
|
|
}
|