ProvidersClient
adaline.providers lists and inspects the LLM providers configured in your workspace.
Access
@adaline/api:
list()
List every provider configured in the workspace. Does not include model lists — useget() with includeModels: true for that.
Parameters
None.Returns
Promise<ListProvidersResponse> with { data: Provider[] }. Each Provider has id, settingId, provider (provider name, e.g., "openai"), description, modelSettings, and timestamps.
Example
get()
Fetch a single provider. PassincludeModels: true to also return the list of models available under this provider.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
providerId | string | Yes | Provider identifier. |
includeModels | boolean | No | When true, populate availableModels in the response. |
Returns
Promise<GetProviderResponse> — the provider record plus (when requested) availableModels: Model[].
Example
See Also
- Adaline class
- ModelsClient — list models across providers
- API reference: List providers · Get provider