ChatCompletion​Chat​Completion

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

Chat completion with DeepSeek

yaml
id: deepseek-chat
namespace: company.name

tasks:
  - id: chat_completion
    type: io.kestra.plugin.deepseek.ChatCompletion
    apiKey: '{{ secret("DEEPSEEK_API_KEY") }}'
    modelName: deepseek-chat
    messages:
      - type: SYSTEM
        content: You are a helpful assistant.
      - type: USER
        content: What is the capital of Germany? Return only the name.
Properties

API Key

The DeepSeek API key used for authentication

Messages

The list of messages in the conversation history

Model name

The name of the DeepSeek model to use, e.g. deepseek-chat or deepseek-coder

Default https://api.deepseek.com/v1

Base URL

The base URL of the DeepSeek API. Using the /v1 URL allows to be compatible with OpenAI.

Possible Values
SYSTEMASSISTANTUSER