Prevent location matching in bot messages
This commit is contained in:
1 parent
c21932389e
commit
d5ebdec076
8 files changed
+112
-2
No files matched your search
@@ -141,6 +141,16 @@ describe('Prompt Testing', () => {
|
||||
expect(married?.promptOverride).toContain('Do not claim an open marriage');
|
||||
});
|
||||
|
||||
it('forbids location matching and in-person suggestions in outbound prompts', () => {
|
||||
const content = fs.readFileSync(configPath, 'utf-8');
|
||||
const yaml = require('yaml');
|
||||
const config = yaml.parse(content);
|
||||
|
||||
expect(config.openrouter.chatOpenerPrompt).toContain("never mention or acknowledge the recipient's location");
|
||||
expect(config.openrouter.chatOpenerPrompt).toContain('suggest meeting in person');
|
||||
expect(config.openrouter.messageGenerationPrompt).toContain("Mention, mirror, or acknowledge the recipient's location");
|
||||
});
|
||||
|
||||
it('strategy variants have valid IDs', () => {
|
||||
const content = fs.readFileSync(configPath, 'utf-8');
|
||||
const yaml = require('yaml');
|
||||
|
||||
Reference in new issue
Block a user