TAG · 2 ARTICLES
#httpclient
- JAVACall an LLM API from plain Java with HttpClient and JSONNo framework, no SDK. Just java.net.http.HttpClient, a few records and Jackson. One small client that talks to a local model or a cloud API by changing three settings, with error handling, retries and streaming.17 Nov 2026 · 8 min
- AICall a local LLM from Java with Ollama: HttpClient, a stateless request, then a chatbot with memoryPlain Java, no AI framework. We call Ollama's /api/chat with HttpClient and Jackson, prove the model remembers nothing between requests, then build a terminal chatbot that remembers, and see why the assistant role and the context window matter.15 Nov 2026 · 8 min