refactor: state rendering
This commit is contained in:
parent
e91a8a20a1
commit
efb44c4414
3 changed files with 16 additions and 16 deletions
4
index.ts
4
index.ts
|
|
@ -63,14 +63,12 @@ async function main() {
|
|||
messages: convo.messages,
|
||||
});
|
||||
|
||||
const start = Date.now();
|
||||
await renderer.renderStream(fullStream);
|
||||
const stop = Date.now();
|
||||
|
||||
convo.messages.push({ role: "assistant", content: await text });
|
||||
await convo.save();
|
||||
|
||||
await renderer.renderStats(totalUsage, start, stop);
|
||||
await renderer.renderStats(totalUsage);
|
||||
}
|
||||
|
||||
await main();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue