Skip to content

Commit 41b0385

Browse files
authored
[vertexai] Use json of unary-success-citations (#8981)
* [vertexai] Use json of unary-success-citations The test files have been updated to include `json` extension versions of the tests files. The old, `txt` extension files are deprecated and will be deleted eventually. * Update also the version used in the update script
1 parent dbdb762 commit 41b0385

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vertexai/src/googleai-mappers.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ describe('Google AI Mappers', () => {
131131
describe('mapGenerateContentResponse', () => {
132132
it('should map a full Google AI response', async () => {
133133
const googleAIMockResponse: GoogleAIGenerateContentResponse = await (
134-
getMockResponse('googleAI', 'unary-success-citations.txt') as Response
134+
getMockResponse('googleAI', 'unary-success-citations.json') as Response
135135
).json();
136136
const mappedResponse = mapGenerateContentResponse(googleAIMockResponse);
137137

scripts/update_vertexai_responses.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# This script replaces mock response files for Vertex AI unit tests with a fresh
1818
# clone of the shared repository of Vertex AI test data.
1919

20-
RESPONSES_VERSION='v10.*' # The major version of mock responses to use
20+
RESPONSES_VERSION='v11.*' # The major version of mock responses to use
2121
REPO_NAME="vertexai-sdk-test-data"
2222
REPO_LINK="https://github.com/FirebaseExtended/$REPO_NAME.git"
2323

0 commit comments

Comments
 (0)