ChatModel
An abstraction layer for chat models in LangChain, used to unify the invocation interfaces of LLMs from different vendors and to express behavioral differences such as streaming generation and interruption. It provides a common surface for sending messages and receiving responses, so that applications can switch between providers while relying on consistent semantics for streaming, tool calls, and related behaviors.
Core Facts
Timeline (last 90 days)
More than 90% of the content in Spring AI 2.0 has no fundamental change from 1.0; ChatClient, ChatModel, formatted output, and large model integration methods are all consistent with 1.0.
In the Spring AI architecture, ChatModel is the underlying abstract interface defining a unified interaction contract with different large model providers; ChatClient is the high-level streaming API for developers, designed using the Builder pattern.
All Facts (3)
Spring AI decouples upper-level business code from specific model implementations by defining unified core abstract interfaces such as ChatModel and EmbeddingModel.
80%UnverifiedIn the Spring AI architecture, ChatModel is the underlying abstract interface defining a unified interaction contract with different large model providers; ChatClient is the high-level streaming API for developers, designed using the Builder pattern.
60%UnverifiedMore than 90% of the content in Spring AI 2.0 has no fundamental change from 1.0; ChatClient, ChatModel, formatted output, and large model integration methods are all consistent with 1.0.
50%