LLM stuff
This commit is contained in:
1 parent
b06e772d2e
commit
792f12b925
1 file changed
+3
-1
+3
-1
@@ -31,7 +31,9 @@ Keep it short, fun, and on-topic.`;
|
|||||||
|
|
||||||
async Write(story_so_far) {
|
async Write(story_so_far) {
|
||||||
const msg = `${this.writePrompt}\n\nStory so far:\n${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) {
|
async Vote(story_so_far, choices) {
|
||||||
|
|||||||
Reference in new issue
Block a user