ChatCompletion​Chat​Completion

yaml
type: "io.kestra.plugin.mistral.ChatCompletion"

Basic Mistral chat

yaml
id: mistral
namespace: company.name

tasks:
  - id: chat_completion
    type: io.kestra.plugin.mistral.ChatCompletion
    apiKey: '{{ secret("MISTRAL_API_KEY") }}'
    modelName: open-mistral-7b
    messages:
      - type: SYSTEM
        content: You are a helpful assistant, answer concisely, avoid overly casual language or unnecessary verbosity.
      - type: USER
        content: "What is the capital of France?"
Properties

API Key

The Mistral API key used for authentication

Messages

List of chat messages in conversational order

Model

The Mistral model to use (e.g. mistral-small, mistral-medium, mistral-large-latest)

Default https://api.mistral.ai/v1

Base URL

The base URL of the Mistral API

Possible Values
SYSTEMAIUSER