Class OllamaAdapter
java.lang.Object
com.axelor.ai.provider.sync.adapter.OllamaAdapter
- All Implemented Interfaces:
ProviderAdapter
Ollama's
GET /api/tags.
The inverse of the hosted providers: the list is whatever an administrator has pulled onto the
machine, so it is short and every entry is deliberate — which is why Ollama's shipped rules carry
no keep limit.
Needs no api key, and its base url is normally http://localhost:11434. That is exactly
the address HttpToolExecutor blocks for LLM-driven calls, and exactly why sync does not
reuse that validation.
The tag is part of the id: qwen3.5:0.8b is what Ollama is asked for, so it is kept
whole. The endpoint describes files — size, quantisation, parameter count — not capabilities, so
everything a model can do comes from the family's defaults.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfetch(AiProvider provider, ModelListFetcher http) Fetches and normalises the vendor's model list.type()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axelor.ai.provider.sync.ProviderAdapter
baseUrl, requireApiKey
-
Constructor Details
-
OllamaAdapter
public OllamaAdapter()
-
-
Method Details
-
type
- Specified by:
typein interfaceProviderAdapter
-
fetch
Description copied from interface:ProviderAdapterFetches and normalises the vendor's model list.- Specified by:
fetchin interfaceProviderAdapter
-