Concept
init_chat_model
init_chat_model is a unified chat model initialization function provided by the LangChain framework, used to create chat model instances by specifying the model provider and model name via string parameters. Its core features include abstracting initialization differences across providers such as OpenAI, Anthropic, and Google to provide a consistent calling interface, supporting dynamic model switching at runtime, and conforming to LangChain's standard chat model interface specification to facilitate building provider-decoupled LLM applications.