Docker
When you develop with BAML, the BAML VScode extension generates a baml_client
directory (on every save) with all the generated code you need to use your AI functions in your application.
We recommend you add baml_client
to your .gitignore
file to avoid committing generated code to your repository, and re-generate the client code when you build and deploy your application.
You could commit the generated code if you’re starting out to not deal with this, just make sure the VSCode extension version matches your baml package dependency version (e.g. baml-py
for python and @boundaryml/baml
for TS) so there are no compatibility issues.
To build your client you can use the following command. See also baml-cli generate: