import fs from 'node:fs';import express from 'express';import expressWs from 'express-ws';import { getLlama, LlamaChatSession,} from 'node-llama-cpp';const llama = await getLlama();const app = express();expressWs(app);app.use(express.static('public'));app.ws('/chat', async (ws, _req) => { const model = await llama.loadModel({ modelPath: './models/qwen1_5-0_5b-chat-q4_0.gguf', }); const c..