We would love to accept your patches and contributions to this project.
Contributions to this project must be accompanied by a Contributor License Agreement (CLA). You (or your employer) retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project.
If you or your current employer have already signed the Google CLA (even if it was for a different project), you probably don't need to do it again.
Visit https://cla.developers.google.com/ to see your current agreements or to sign a new one.
This project follows Google's Open Source Community Guidelines.
Steps to build locally:
- clone this repo
cd generative-ai-js
- Run
yarn
to install dependencies. - Make changes as needed to source code.
- Run
yarn build
to build. - Run
yarn test
to run unit tests. - Run
yarn docs
to generate any changes to reference docs (destination dir is docs/reference). - Run
yarn format
to fix formatting and add license headers as needed. - Run
yarn changeset
to generate the changeset summary.
This repo has a monorepo structure to allow for easily adding additional packages. The @google/generative-ai
package code is in packages/main
.
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose.