MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / readlineQuestion

Function readlineQuestion

subprojects/llama.cpp/tools/server/chat.mjs:124–126  ·  view source on GitHub ↗
(rl, query, options)

Source from the content-addressed store, hash-verified

122const rl = readline.createInterface({ input: stdin, output: stdout });
123
124const readlineQuestion = (rl, query, options) => new Promise((resolve, reject) => {
125 rl.question(query, options, resolve)
126});
127
128while(true) {
129 const question = await readlineQuestion(rl, '> ')

Callers 1

chat.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected