From 3bf0c10b42d92b015d5add0132dd3936a3f4cdb5 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Tue, 10 Dec 2024 20:28:30 -0800 Subject: [PATCH] AIX: calls: no system messages --- src/apps/call/Telephone.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/call/Telephone.tsx b/src/apps/call/Telephone.tsx index 656858d18..623f9323d 100644 --- a/src/apps/call/Telephone.tsx +++ b/src/apps/call/Telephone.tsx @@ -234,11 +234,11 @@ export function Telephone(props: { createDMessageTextContent('system', 'You are having a phone call. Your response style is brief and to the point, and according to your personality, defined below.'), // Chat messages, including the system prompt ...((reMessages && reMessages?.length > 0) - ? reMessages - : [createDMessageTextContent('system', personaSystemMessage)] + ? reMessages.map(_m => _m.role === 'system' ? { ..._m, role: 'user' as const } : _m) // cast system chat messages to the user role + : [createDMessageTextContent('user', personaSystemMessage)] ), // Call system prompt 2, to indicate the call has started - createDMessageTextContent('system', 'You are now on the phone call related to the chat above. Respect your personality and answer with short, friendly and accurate thoughtful lines.'), + createDMessageTextContent('user', '**You are now on the phone call related to the chat above**.\nRespect your personality and answer with short, friendly and accurate thoughtful brief lines.'), // Call history ...callMessages, ];