Mirror PR for https://github.com/hwchase17/langchainjs/pull/1696 Secrets passed via environment variables should be present in the serialised chain
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>