diff --git a/binding/nodejs/test/index.test.ts b/binding/nodejs/test/index.test.ts index b244d04..8ab245f 100644 --- a/binding/nodejs/test/index.test.ts +++ b/binding/nodejs/test/index.test.ts @@ -174,7 +174,9 @@ const verifyCompletion = (res: PicoLLMCompletion, expectations: CompletionExpect const runGenerateTest = async ( prompt: string, expectations: CompletionExpectation[], - options?: PicoLLMGenerateOptions, + options: PicoLLMGenerateOptions = { + streamCallback: () => {}, + }, ) => { const picoLLM = new PicoLLM(ACCESS_KEY, MODEL_PATH, { device: DEVICE diff --git a/demo/nodejs/completion.js b/demo/nodejs/completion.js index 90f4405..7a55219 100755 --- a/demo/nodejs/completion.js +++ b/demo/nodejs/completion.js @@ -135,7 +135,6 @@ async function completionDemo() { console.log(">>> Press `Enter` to exit: "); readline.emitKeypressEvents(process.stdin); - process.stdin.setRawMode(true); process.stdin.on("keypress", (key, str) => { if (str.sequence === '\r') {