AI ListModels

AI ListModels

Certified

List available Langdock models

Calls Langdock's GET /models endpoint on the route selected by modelFamily, to discover the model IDs available to your workspace. Langdock does not publish a stable response schema for this endpoint, so the response is parsed leniently: only id is required per model, and provider-specific fields (created/owned_by on the OpenAI route, display_name/created_at on the Anthropic route) are kept when present.

yaml
type: io.kestra.plugin.ai.langdock.ListModels

List Langdock OpenAI-route models and use the first one in a chat completion

yaml
id: list_and_chat
namespace: company.ai

tasks:
  - id: list_models
    type: io.kestra.plugin.ai.langdock.ListModels
    apiKey: "{{ secret('LANGDOCK_API_KEY') }}"
    modelFamily: OPENAI

  - id: chat_completion
    type: io.kestra.plugin.ai.completion.ChatCompletion
    provider:
      type: io.kestra.plugin.ai.provider.Langdock
      apiKey: "{{ secret('LANGDOCK_API_KEY') }}"
      modelFamily: OPENAI
      modelName: "{{ outputs.list_models.models[0].id }}"
    messages:
      - type: USER
        content: Say hello in one short sentence.
Properties

API Key

Langdock API key used to authenticate the request. Store it as a Kestra secret rather than inline. No default: this property is required.

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

Base URL

Custom base URL overriding the default Langdock endpoint, for dedicated deployments, proxies, or test doubles such as WireMock. Not set by default, in which case the URL is derived from region.

DefaultOPENAI
Possible Values
OPENAIANTHROPIC

Model family

Langdock Completion API route whose models are listed: OPENAI or ANTHROPIC. Defaults to OPENAI.

DefaultEU
Possible Values
EUUS

Region

Langdock region the models are listed from: EU or US. Defaults to EU. Ignored when baseUrl points at a dedicated deployment.

Count

Number of models returned.

Models

Models available on the selected Langdock route.

Definitions
createdAtstring
Formatdate-time

Created at

Timestamp at which the model was published, when the API reports it.

displayNamestring

Display name

Human-readable model name. Returned only by the Anthropic route.

idstring

Model ID

Model identifier, to pass as modelName on the Langdock provider.

ownedBystring

Owned by

Organization that owns the model. Returned only by the OpenAI route.