From e22b4fa2495e396b6da765a715ab55036ff90747 Mon Sep 17 00:00:00 2001 From: Matt Parlane Date: Tue, 4 Jun 2024 14:11:47 +1200 Subject: [PATCH] Update error message to "assistant" instead of "ai" --- packages/shared/src/utils/chat/chatItemsToChatSegment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/src/utils/chat/chatItemsToChatSegment.ts b/packages/shared/src/utils/chat/chatItemsToChatSegment.ts index ddd70588..26ce62e3 100644 --- a/packages/shared/src/utils/chat/chatItemsToChatSegment.ts +++ b/packages/shared/src/utils/chat/chatItemsToChatSegment.ts @@ -12,7 +12,7 @@ export const chatItemsToChatSegment = ( if (message.role !== 'assistant' && message.role !== 'user') { warn( `Invalid role for item at index ${index} in initial conversation: ` + - `Role must be "ai" or "user"`, + `Role must be "assistant" or "user"`, ); return;