Solon 4.0 ChatModel: A Practical Guide to Building LLM-Powered Applications Solon 4.0 introduces ChatModel, a unified LLM client that abstracts away boilerplate code for integrating large language models into Java applications. The API supports multiple model providers including OpenAI, Ollama, Gemini, Anthropic, and DashScope through a dialect pattern, and offers both synchronous and streaming chat capabilities with a builder-oriented API. If you've ever tried integrating a large language model LLM into a Java application, you've probably written a lot of boilerplate: HTTP clients, JSON parsing, streaming handling, session management. Solon 4.0's ChatModel abstracts all of that away with a clean, builder-oriented API. In this guide, I'll walk through building real, working AI features using ChatModel — from a simple chat call to a streaming chatbot with conversation memory. ChatModel package org.noear.solon.ai.chat is a unified LLM client in Solon's AI ecosystem. Instead of writing raw HTTP calls for different model providers, you use a single API that supports: Flux