Skip to content

Commit

Permalink
Update error message to "assistant" instead of "ai"
Browse files Browse the repository at this point in the history
  • Loading branch information
mattparlane authored and salmenus committed Jun 4, 2024
1 parent 5cc3638 commit e22b4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/utils/chat/chatItemsToChatSegment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const chatItemsToChatSegment = <AiMsg>(
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;
Expand Down

0 comments on commit e22b4fa

Please sign in to comment.