langchain-core[minor]: Allow passing local cache to language models (#19331)
After this PR it will be possible to pass a cache instance directly to a
language model. This is useful to allow different language models to use
different caches if needed.
- **Issue:** close #19276
---------
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>