From f4592fa4c0951e29e70b9b4ce543c58155922045 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Wed, 21 Oct 2026 14:05:20 +0800 Subject: [PATCH] fix(WO79): the ORT shim's create accepts session options The single-thread decode session option needs the shim's create signature to accept options; the omission broke the build on main (merged ahead of its CI -- fix-forward). --- src/ml/onnx-runtime.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ml/onnx-runtime.d.ts b/src/ml/onnx-runtime.d.ts index ba189df..8cc9d6d 100644 --- a/src/ml/onnx-runtime.d.ts +++ b/src/ml/onnx-runtime.d.ts @@ -23,7 +23,10 @@ declare module "onnxruntime-node" { } export const Tensor: new (type: string, data: unknown, dims: readonly number[]) => OnnxTensor export const InferenceSession: { - create(modelData: ArrayBuffer | Uint8Array): Promise + create( + modelData: ArrayBuffer | Uint8Array, + options?: { intraOpNumThreads?: number }, + ): Promise } }