1. Define Secrets in config.yaml
Add secrets with placeholder values in config.yaml:
Never store actual secret values in
config.yaml. Store secrets in the workspace settings.2. Access Secrets in model.py
Secrets are passed as keyword arguments to the Model class:
3. Store Secrets on Your Remote
- On Baseten, add secrets in the workspace settings.
- Use the exact name from
config.yaml(case-sensitive).