File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -131,11 +131,11 @@ const SYSTEM_PROMPT = 'Answer the question politely and concisely.';
131
131
messages . push ( { role : 'system' , content : SYSTEM_PROMPT } ) ;
132
132
133
133
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 ; } ) ;
136
136
137
137
const qa = ( ) => {
138
- interface . question ( '>> ' , async ( question ) => {
138
+ io . question ( '>> ' , async ( question ) => {
139
139
messages . push ( { role : 'user' , content : question } ) ;
140
140
const start = Date . now ( ) ;
141
141
const answer = await chat ( messages , ( str ) => process . stdout . write ( str ) ) ;
You can’t perform that action at this time.
0 commit comments