Skip to content

Commit 20a93d0

Browse files
committed
Fix tests that reference generateContentResponse
1 parent 071b510 commit 20a93d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/vertexai/src/requests/response-helpers.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ export function addHelpers(
4646
VertexAIErrorCode.RESPONSE_ERROR,
4747
`Response error: ${formatBlockErrorMessage(
4848
response
49-
)}. Response body stored in error.generateContentResponse`,
49+
)}. Response body stored in error.response`,
5050
{
51-
generateContentResponse: response
51+
response
5252
}
5353
);
5454
}
@@ -58,7 +58,7 @@ export function addHelpers(
5858
VertexAIErrorCode.RESPONSE_ERROR,
5959
`Text not available. ${formatBlockErrorMessage(response)}`,
6060
{
61-
generateContentResponse: response
61+
response
6262
}
6363
);
6464
}
@@ -78,9 +78,9 @@ export function addHelpers(
7878
VertexAIErrorCode.RESPONSE_ERROR,
7979
`Response error: ${formatBlockErrorMessage(
8080
response
81-
)}. Response body stored in error.generateContentResponse`,
81+
)}. Response body stored in error.response`,
8282
{
83-
generateContentResponse: response
83+
response
8484
}
8585
);
8686
}
@@ -90,7 +90,7 @@ export function addHelpers(
9090
VertexAIErrorCode.RESPONSE_ERROR,
9191
`Function call not available. ${formatBlockErrorMessage(response)}`,
9292
{
93-
generateContentResponse: response
93+
response
9494
}
9595
);
9696
}

0 commit comments

Comments
 (0)