From 6fcd87aba72d11fc69f3b2bac551755665d70b06 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Tue, 10 Dec 2024 20:26:30 -0800 Subject: [PATCH] AIX: misc --- src/modules/aix/client/aix.client.chatGenerateRequest.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/aix/client/aix.client.chatGenerateRequest.ts b/src/modules/aix/client/aix.client.chatGenerateRequest.ts index 104adabac..cbb27b6f1 100644 --- a/src/modules/aix/client/aix.client.chatGenerateRequest.ts +++ b/src/modules/aix/client/aix.client.chatGenerateRequest.ts @@ -228,8 +228,11 @@ export async function aixCGR_FromDMessagesOrThrow( acc.chatSequence.push(...assistantMessages); } else { + // TODO: implement mid-chat system messages if needed - console.warn('aixCGR_FromDMessages: unexpected message role', m.role); + // NOTE: the API should just disallow 'system' messages in the middle of the chat + console.warn('[DEV] aixCGR_FromDMessages: unexpected message role', m.role); + } return acc;