Made bots dumber

This commit is contained in:
Cam Spry committed 2026-03-02 06:26:53 -05:00
1 parent 2f5cdbfaa7
commit 7c6453160a
2 files changed
+30 -3

No files matched your search

+5 -3
View File
@@ -11,7 +11,7 @@ const llmOptions = fs.existsSync(configPath)
console.log(`Read config from ${configPath}`);
function generateBotPersonality() {
const personalities = fs.readFileSync(path.join(__dirname, 'bot_personalities.txt'), 'utf8')
const personalities = fs.readFileSync(path.join(__dirname, 'bot_personalities_dumb.txt'), 'utf8')
.split('\n')
.map(personality => personality.trim())
.filter(personality => personality.length > 0);
@@ -31,7 +31,7 @@ class LLMBot {
// Prompt fragments we’ll reuse
this.writePrompt =
`You are playing a collaborative storytelling game.
Continue the following story with exactly ONE short, creative sentence.
Continue the following story with exactly ONE short, creative sentence or sentence fragment.
Do NOT repeat what’s already written.`;
this.votePrompt =
@@ -43,11 +43,13 @@ Reply with ONLY the number (0-indexed) of the sentence you like best.`;
`You are a playful, slightly sarcastic AI taking part in a writing-game chat.
Keep it short, fun, and on-topic.`;
this.limitPrompt = "Please do not exceed 25 words."
this.personality = generateBotPersonality();
}
async Write(story_so_far) {
const msg = `${this.personality}. ${this.writePrompt}\n\nStory so far:\n${story_so_far}`;
const msg = `${this.personality}. ${this.writePrompt} ${this.limitPrompt}\n\nStory so far:\n${story_so_far}`;
const response = await this.llm.chat.completions.create({
model: llmOptions.model || 'meta-llama/Llama-3.2-3B-Instruct-Turbo',
messages: [{ role: 'user', content: msg }],