Skip to content

Commit b6aca64

Browse files
committed
Avoid interface since technically it is a keyword
1 parent f341bd6 commit b6aca64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ask-llm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ const SYSTEM_PROMPT = 'Answer the question politely and concisely.';
131131
messages.push({ role: 'system', content: SYSTEM_PROMPT });
132132

133133
let loop = true;
134-
const interface = readline.createInterface({ input: process.stdin, output: process.stdout });
135-
interface.on('close', () => { loop = false; });
134+
const io = readline.createInterface({ input: process.stdin, output: process.stdout });
135+
io.on('close', () => { loop = false; });
136136

137137
const qa = () => {
138-
interface.question('>> ', async (question) => {
138+
io.question('>> ', async (question) => {
139139
messages.push({ role: 'user', content: question });
140140
const start = Date.now();
141141
const answer = await chat(messages, (str) => process.stdout.write(str));

0 commit comments

Comments
 (0)