Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/vertexai/src/methods/chat-session-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function validateChatHistory(history: Content[]): void {
if (!validPreviousContentRoles.includes(prevContent.role)) {
throw new VertexAIError(
VertexAIErrorCode.INVALID_CONTENT,
`Content with role '${role} can't follow '${
`Content with role '${role}' can't follow '${
prevContent.role
}'. Valid previous roles: ${JSON.stringify(
VALID_PREVIOUS_CONTENT_ROLES
Expand Down
Loading