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

More chat models commands

All chat models commands · LangChain 1 cheatsheet

Was this page helpful?