Featured image of post Spring AI 2.0.1 model service abstraction, unifying OpenAI, Tongyi Qianwen, and Ollama

Spring AI 2.0.1 model service abstraction, unifying OpenAI, Tongyi Qianwen, and Ollama

Juejin releases Spring AI 2.0.1 model service abstraction in practice: a single ModelService layer unifies calls to OpenAI, Tongyi Qianwen-compatible APIs, and Ollama. Business logic only passes a logical model ID, while the real model name and endpoint are provided through controlled configuration. Capabilities such as streaming, tool calling, and JSON Schema are explicitly declared, and unsupported requests are rejected upfront. Streaming fallback is allowed only before the first content chunk is generated. Source: Juejin