From a6001883798ac6820a07cc491fcc8952b34808cb Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Tue, 29 Apr 2025 00:22:41 -0400 Subject: [PATCH 1/2] [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. --- packages/vertexai/src/googleai-mappers.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vertexai/src/googleai-mappers.test.ts b/packages/vertexai/src/googleai-mappers.test.ts index 9c3bb0f9241..7aa30ebb73f 100644 --- a/packages/vertexai/src/googleai-mappers.test.ts +++ b/packages/vertexai/src/googleai-mappers.test.ts @@ -131,7 +131,7 @@ describe('Google AI Mappers', () => { describe('mapGenerateContentResponse', () => { it('should map a full Google AI response', async () => { const googleAIMockResponse: GoogleAIGenerateContentResponse = await ( - getMockResponse('googleAI', 'unary-success-citations.txt') as Response + getMockResponse('googleAI', 'unary-success-citations.json') as Response ).json(); const mappedResponse = mapGenerateContentResponse(googleAIMockResponse); From 8479960ba0fa3b20477f0b19964277b62f066a4b Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Paz Date: Tue, 29 Apr 2025 00:23:20 -0400 Subject: [PATCH 2/2] Update also the version used in the update script --- scripts/update_vertexai_responses.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_vertexai_responses.sh b/scripts/update_vertexai_responses.sh index bf55a645a66..d80959febce 100755 --- a/scripts/update_vertexai_responses.sh +++ b/scripts/update_vertexai_responses.sh @@ -17,7 +17,7 @@ # This script replaces mock response files for Vertex AI unit tests with a fresh # clone of the shared repository of Vertex AI test data. -RESPONSES_VERSION='v10.*' # The major version of mock responses to use +RESPONSES_VERSION='v11.*' # The major version of mock responses to use REPO_NAME="vertexai-sdk-test-data" REPO_LINK="https://github.com/FirebaseExtended/$REPO_NAME.git"