Require explicit commenter context in openers
This commit is contained in:
1 parent
f77157d303
commit
2500f0a23c
4 files changed
+18
-2
No files matched your search
@@ -669,6 +669,7 @@ describe('OpenRouterClient', () => {
|
||||
const userPrompt = mockCreate.mock.calls[0][0].messages[1].content as string;
|
||||
expect(systemPrompt).toContain('The RECIPIENT is the commenter');
|
||||
expect(systemPrompt).toContain('The SOURCE POST SUBJECT is a different person');
|
||||
expect(systemPrompt).toContain('The first sentence MUST explicitly anchor to the public comment');
|
||||
expect(userPrompt).toContain('I want that too');
|
||||
expect(`${systemPrompt}\n${userPrompt}`).not.toContain('Write a message for Commenter about');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user