Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/ai/src/requests/stream-reader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ describe('processStream', () => {
expect(response.text()).to.not.be.empty;
}
const aggregatedResponse = await result.response;
expect(aggregatedResponse.text()).to.include('**Cats:**');
expect(aggregatedResponse.text()).to.include('to their owners.');
expect(aggregatedResponse.text()).to.include('Okay');
expect(aggregatedResponse.text()).to.include('brewing delicious coffee');
});
it('streaming response - long - big chunk', async () => {
const fakeResponse = getMockResponseStreaming(
Expand All @@ -116,8 +116,8 @@ describe('processStream', () => {
expect(response.text()).to.not.be.empty;
}
const aggregatedResponse = await result.response;
expect(aggregatedResponse.text()).to.include('**Cats:**');
expect(aggregatedResponse.text()).to.include('to their owners.');
expect(aggregatedResponse.text()).to.include('Okay');
expect(aggregatedResponse.text()).to.include('brewing delicious coffee');
});
it('streaming response - utf8', async () => {
const fakeResponse = getMockResponseStreaming(
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='v11.*' # The major version of mock responses to use
RESPONSES_VERSION='v14.*' # 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
Loading