-
Notifications
You must be signed in to change notification settings - Fork 926
test(vertexai): add backendName
param to mock response getters
#8906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
`backendName` can be either `googleAI` or `vertexAI`. This can be passed to `getMockResponse` or `getMockResponseStreaming` to specify whether the mock response lookup should be done in the set of vertexAI or googleAI mock files. Modified the `convert-mocks.ts` script to read mock responses from the 'developerapi' directory, and add an export to the generated file for the new lookup object with those mock responses.
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
`backendName` can be either `googleAI` or `vertexAI`. This can be passed to `getMockResponse` or `getMockResponseStreaming` to specify whether the mock response lookup should be done in the set of vertexAI or googleAI mock files. Modified the `convert-mocks.ts` script to read mock responses from the 'developerapi' directory, and add an export to the generated file for the new lookup object with those mock responses.
backendName
can be eithergoogleAI
orvertexAI
. This can be passed togetMockResponse
orgetMockResponseStreaming
to specify whether the mock response lookup should be done in the set of vertexAI or googleAI mock files.Modified the
convert-mocks.ts
script to read mock responses from the 'developerapi' directory, and add an export to the generated file for the new lookup object with those mock responses.