Skip to main content

Deepseek conversation

Type: conversation.deepseek

Status: alpha

Reference: https://docs.dapr.io/reference/components-reference/supported-conversation/setup-deepseek/

Example​

apiVersion: cra.diagrid.io/v1beta1
kind: Component
metadata:
name: <name>
spec:
type: conversation.deepseek
version: v1
metadata:
# API key for Deepseek.
- name: key
value: |
**********
# Custom API endpoint URL for Deepseek. If not specified, the default endpoint will be used. (Optional)
#- name: endpoint
# value: "https://api.deepseek.com"
# HTTP headers to send on every request to the model endpoint, as a JSON object of header names to string values. Use it for headers that a gateway or proxy in front of the provider requires, for example a tenant ID or a gateway key. A header in this field replaces the header of the same name that the component sets. This includes the Authorization header that the component builds from key. key is still required, so set key to any non-empty value if the gateway does its own authentication. Host, Content-Length and hop-by-hop headers are not allowed. When this field is set, the component does not follow redirects to a different origin. (Optional)
#- name: headers
# value: "{"X-Tenant-ID": "tenant-a", "X-Gateway-Key": "**********"}"
# Default maximum number of tokens the model may generate per request. A request-level maxTokens value greater than zero overrides this default. When unset, no cap is sent and the provider's own default applies. (Optional)
#- name: maxTokens
# value: "2048"
# The Deepseek LLM to use. (Optional)
#- name: model
# value: "deepseek-chat"

Authentication profiles​

Available authentication profiles:

  • API Key

API Key​

Authenticate using an API key

key (string)​

Required - API key for Deepseek.

Example value:

**********

Metadata​

endpoint (string)​

Custom API endpoint URL for Deepseek. If not specified, the default endpoint will be used.

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

Example value: https://api.deepseek.com

headers (string)​

HTTP headers to send on every request to the model endpoint, as a JSON object of header names to string values. Use it for headers that a gateway or proxy in front of the provider requires, for example a tenant ID or a gateway key. A header in this field replaces the header of the same name that the component sets. This includes the Authorization header that the component builds from key. key is still required, so set key to any non-empty value if the gateway does its own authentication. Host, Content-Length and hop-by-hop headers are not allowed. When this field is set, the component does not follow redirects to a different origin.

Example value: {"X-Tenant-ID": "tenant-a", "X-Gateway-Key": "**********"}

maxTokens (number)​

Default maximum number of tokens the model may generate per request. A request-level maxTokens value greater than zero overrides this default. When unset, no cap is sent and the provider's own default applies.

Example value: 2048

model (string)​

The Deepseek LLM to use.

Default value: deepseek-chat

Example value: deepseek-reasoner