To use the client today, you have to do this:
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
What if you could just do:
const replicate = new Replicate()
..and have it default to process.env.REPLICATE_API_TOKEN, if present?
This is similar to how the Python client works, and I kinda like it. Also makes code examples a lot cleaner.