LLM stuff
This commit is contained in:
parent
b06e772d2e
commit
792f12b925
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue