ChatCompletion
yaml
type: "io.kestra.plugin.deepseek.ChatCompletion"
Examples
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
apiKey *Requiredstring
API Key
The DeepSeek API key used for authentication
modelName *Requiredstring
Model name
The name of the DeepSeek model to use, e.g. deepseek-chat
or deepseek-coder
baseUrl string
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.
Outputs
raw string
response string
Definitions
io.kestra.plugin.deepseek.ChatCompletion-ChatMessage
content string
type string
Possible Values
SYSTEM
ASSISTANT
USER