Skip to content

Commit dd6a8f0

Browse files
authoredApr 29, 2025
fix(vertexai): add missing quote to chat role error message (#8979)
1 parent 0e2558a commit dd6a8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/vertexai/src/methods/chat-session-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function validateChatHistory(history: Content[]): void {
111111
if (!validPreviousContentRoles.includes(prevContent.role)) {
112112
throw new VertexAIError(
113113
VertexAIErrorCode.INVALID_CONTENT,
114-
`Content with role '${role} can't follow '${
114+
`Content with role '${role}' can't follow '${
115115
prevContent.role
116116
}'. Valid previous roles: ${JSON.stringify(
117117
VALID_PREVIOUS_CONTENT_ROLES

0 commit comments

Comments
 (0)