ChatCompletion
yaml
type: "io.kestra.plugin.mistral.ChatCompletion"
Examples
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
apiKey *Requiredstring
API Key
The Mistral API key used for authentication
modelName *Requiredstring
Model
The Mistral model to use (e.g. mistral-small, mistral-medium, mistral-large-latest)
baseUrl string
Default
https://api.mistral.ai/v1
Base URL
The base URL of the Mistral API
Outputs
raw string
response string
Definitions
io.kestra.plugin.mistral.ChatCompletion-ChatMessage
content string
type string
Possible Values
SYSTEM
AI
USER