We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e2558a commit dd6a8f0Copy full SHA for dd6a8f0
packages/vertexai/src/methods/chat-session-helpers.ts
@@ -111,7 +111,7 @@ export function validateChatHistory(history: Content[]): void {
111
if (!validPreviousContentRoles.includes(prevContent.role)) {
112
throw new VertexAIError(
113
VertexAIErrorCode.INVALID_CONTENT,
114
- `Content with role '${role} can't follow '${
+ `Content with role '${role}' can't follow '${
115
prevContent.role
116
}'. Valid previous roles: ${JSON.stringify(
117
VALID_PREVIOUS_CONTENT_ROLES
0 commit comments