Skip to content

Commit

Permalink
Upgrade vertex responses to v3 (#8445)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlarocque authored Aug 20, 2024
1 parent 12ba46f commit 8a96f4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vertexai/src/requests/stream-reader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ describe('processStream', () => {
expect(aggregatedResponse.text()).to.include('Quantum mechanics is');
expect(
aggregatedResponse.candidates?.[0].citationMetadata?.citations.length
).to.equal(2);
).to.equal(3);
let foundCitationMetadata = false;
for await (const response of result.stream) {
expect(response.text()).to.not.be.empty;
Expand Down
2 changes: 1 addition & 1 deletion scripts/update_vertexai_responses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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='v2.*' # The major version of mock responses to use
RESPONSES_VERSION='v3.*' # The major version of mock responses to use
REPO_NAME="vertexai-sdk-test-data"
REPO_LINK="https://github.com/FirebaseExtended/$REPO_NAME.git"

Expand Down

0 comments on commit 8a96f4f

Please sign in to comment.