Class AnthropicAdapter
java.lang.Object
com.axelor.ai.provider.sync.adapter.AnthropicAdapter
- All Implemented Interfaces:
ProviderAdapter
Anthropic's
GET /v1/models.
Reports more than its shape suggests: max_input_tokens, a display_name, and a
capabilities object covering image input and thinking. Those map onto layer 1, so the
family's defaults only have to supply what is genuinely absent — notably tool support, which the
endpoint does not describe.
Paginates by cursor: has_more plus last_id fed back as after_id.
-
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
-
AnthropicAdapter
public AnthropicAdapter()
-
-
Method Details
-
type
- Specified by:
typein interfaceProviderAdapter
-
fetch
Description copied from interface:ProviderAdapterFetches and normalises the vendor's model list.- Specified by:
fetchin interfaceProviderAdapter
-