Class OpenAiAdapter
java.lang.Object
com.axelor.ai.provider.sync.adapter.OpenAiAdapter
- All Implemented Interfaces:
ProviderAdapter
OpenAI's
GET /v1/models.
Returns ids and a created unix timestamp and nothing else — no capabilities, no
pagination. Everything a model can do therefore comes from the family's defaults.
Also serves CUSTOM providers sitting on OpenAI-compatible gateways, which is most of
them.
-
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
-
OpenAiAdapter
public OpenAiAdapter()
-
-
Method Details
-
type
- Specified by:
typein interfaceProviderAdapter
-
fetch
Description copied from interface:ProviderAdapterFetches and normalises the vendor's model list.- Specified by:
fetchin interfaceProviderAdapter
-