feat: expand outreach targeting and messaging
This commit is contained in:
1 parent
7defff422d
commit
d0a8bd0e2f
40 files changed
+890
-82
No files matched your search
@@ -315,6 +315,26 @@ describe('OpenRouterClient', () => {
|
||||
expect(result.attractivenessScore).toBeNull();
|
||||
});
|
||||
|
||||
it('parses and removes a grounded PHYSIQUE_SCORE', async () => {
|
||||
mockCreate.mockResolvedValueOnce({
|
||||
choices: [{ message: { content: 'GENDER:female\nPHYSIQUE_SCORE:7\nRATING:73\n\nDescription here.' } }],
|
||||
});
|
||||
|
||||
const result = await client.analyzeImage('base64data', 'image/jpeg');
|
||||
expect(result.physiqueScore).toBe(7);
|
||||
expect(result.description).toBe('Description here.');
|
||||
});
|
||||
|
||||
it('returns null for PHYSIQUE_SCORE:UNKNOWN', async () => {
|
||||
mockCreate.mockResolvedValueOnce({
|
||||
choices: [{ message: { content: 'GENDER:female\nPHYSIQUE_SCORE:UNKNOWN\n\nClose-cropped portrait.' } }],
|
||||
});
|
||||
|
||||
const result = await client.analyzeImage('base64data', 'image/jpeg');
|
||||
expect(result.physiqueScore).toBeNull();
|
||||
expect(result.description).toBe('Close-cropped portrait.');
|
||||
});
|
||||
|
||||
it('handles case-insensitive GENDER prefix', async () => {
|
||||
mockCreate.mockResolvedValueOnce({
|
||||
choices: [{ message: { content: 'GENDER:FEMALE\n\nA woman.' } }],
|
||||
|
||||
Reference in new issue
Block a user