langchain
9decd0b2 - langchain[patch]: fix moderation chain init (#25778)

Commit
1 year ago
langchain[patch]: fix moderation chain init (#25778) [This commit](https://github.com/langchain-ai/langchain/commit/d3ca2cc8c3488eb973dd5ee3ebd4a8d10d8e2dbf) has broken the moderation chain so we've faced a crash when migrating the LangChain from v0.1 to v0.2. The issue appears that the class attribute the code refers to doesn't hold the value processed in the `validate_environment` method. We had `extras={}` in this attribute, and it was casted to `True` when it should've been `False`. Adding a simple assignment seems to resolve the issue, though I'm not sure it's the right way. --- --------- Co-authored-by: Michael Rubél <mrubel@oroinc.com> Co-authored-by: Bagatur <baskaryan@gmail.com>
Author
Parents
Loading