LLM stuff

This commit is contained in:
Cam Spry 2026-03-01 08:56:30 -05:00
parent b06e772d2e
commit 792f12b925
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ Keep it short, fun, and on-topic.`;
async Write(story_so_far) {
const msg = `${this.writePrompt}\n\nStory so far:\n${story_so_far}`;
return (await this.llm.chat(msg)).trim();
const llm_response = await this.llm.chat(msg);
console.log(`Received response from LLM: ${llm_response}`)
return llm_response.trim();
}
async Vote(story_so_far, choices) {