LangChain 1 · Chat models
Set model parameters
Pass settings such as temperature and a token limit when you create the model.
model = init_chat_model("anthropic:claude-sonnet-5-5", temperature=0, max_tokens=1024)
Official LangChain 1 documentation
LangChain 1 · Chat models
Pass settings such as temperature and a token limit when you create the model.
model = init_chat_model("anthropic:claude-sonnet-5-5", temperature=0, max_tokens=1024)
Official LangChain 1 documentation
Was this page helpful?