Skip to content

Commit

Permalink
fix test + build
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Sep 24, 2024
1 parent f7c1a09 commit ac03aaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion binding/nodejs/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion demo/nodejs/completion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit ac03aaf

Please sign in to comment.