langchain
a9c86774 - Anthropic: Allow the use of kwargs consistent with ChatOpenAI. (#9515)

Commit
2 years ago
Anthropic: Allow the use of kwargs consistent with ChatOpenAI. (#9515) - Description: ~~Creates a new root_validator in `_AnthropicCommon` that allows the use of `model_name` and `max_tokens` keyword arguments.~~ Adds pydantic field aliases to support `model_name` and `max_tokens` as keyword arguments. Ultimately, this makes `ChatAnthropic` more consistent with `ChatOpenAI`, making the two classes more interchangeable for the developer. - Issue: https://github.com/langchain-ai/langchain/issues/9510 --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
Parents
Loading