MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / chat.mjs

File chat.mjs

examples/server/chat.mjs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import * as readline from 'node:readline'
2import { stdin, stdout } from 'node:process'
3import { readFileSync } from 'node:fs'
4import { SchemaConverter } from './public/json-schema-to-grammar.mjs'

Callers

nothing calls this directly

Calls 8

findMethod · 0.80
tokenizeFunction · 0.70
readlineQuestionFunction · 0.70
chat_completionFunction · 0.70
sliceMethod · 0.45
parseMethod · 0.45
visitMethod · 0.45
formatGrammarMethod · 0.45

Tested by

no test coverage detected