|
dolibarr 25.0.0-alpha
|
Return the list of model ids available from the configured AI provider. More...
Go to the source code of this file.
Return the list of model ids available from the configured AI provider.
Queries the provider's model listing endpoint (Anthropic GET /v1/models, Google GET /v1beta/models, OpenAI-compatible GET /v1/models) and caches the result for one hour in a JSON constant, so the chat model picker and the admin datalists don't hammer the provider. Response: {"service":..., "models":[ids]}.
Definition in file list_models.php.