Skip to content

Commit 8a96f4f

Browse files
authored
Upgrade vertex responses to v3 (#8445)
1 parent 12ba46f commit 8a96f4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vertexai/src/requests/stream-reader.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ describe('processStream', () => {
210210
expect(aggregatedResponse.text()).to.include('Quantum mechanics is');
211211
expect(
212212
aggregatedResponse.candidates?.[0].citationMetadata?.citations.length
213-
).to.equal(2);
213+
).to.equal(3);
214214
let foundCitationMetadata = false;
215215
for await (const response of result.stream) {
216216
expect(response.text()).to.not.be.empty;

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='v2.*' # The major version of mock responses to use
20+
RESPONSES_VERSION='v3.*' # 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)