fix: throw ClientError or GoogleGenerativeAIError according to response status so that users can catch them and handle them according to class name. #65
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
name: presubmit | |
jobs: | |
units: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [18, 20] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: ^6.24.1 | |
- run: node --version | |
- run: npm install | |
- run: npm run test | |
name: Run unit tests | |
env: | |
BUILD_TYPE: presubmit | |
TEST_TYPE: units |