Skip to main content
View source

Deepseek

View as Markdown

A RocketRide LLM node that connects DeepSeek models to a pipeline, via the DeepSeek cloud API, locally through Ollama, or through OpenRouter.

What it does

Provides DeepSeek language models as an llm invoke connection for agents and other nodes that need an LLM. It can also be used directly via lanes: send a question in, receive a generated answer out.

Built on LangChain's ChatOpenAI client (DeepSeek exposes an OpenAI-compatible API), so the same node works against the DeepSeek cloud endpoint, a local Ollama server, or OpenRouter. Requests are made with temperature 0, and max_tokens is capped at the selected profile's output-token limit.

At save time, the node validates cloud configurations (deepseek-reasoner and deepseek-chat only) by sending a minimal 1-token probe to https://api.deepseek.com/v1. Local/Ollama profiles are intentionally not validated at save time: a misconfigured local server only surfaces at runtime.


Configuration

Lanes

Lane inLane outDescription
questionsanswersSend a question directly, receive a generated answer

Fields

FieldType / DefaultDescription
profileenum, default cloud-reasonerWhich DeepSeek model profile to use (see below). Shown as Model in the UI.
apikeystringAPI key. Cloud and OpenRouter profiles only; local profiles have no key field.
serverbasestringOpenAI-compatible endpoint URL. Local profiles only; default http://localhost:11434/v1 (Ollama).

Each profile pre-configures model, modelSource, modelTotalTokens, modelOutputTokens, and (for cloud/local) serverbase. Only the fields listed above are user-editable; the rest come from the selected profile.

API key handling

  • For the cloud endpoint (serverbase containing api.deepseek), the key must start with sk-; anything else raises Invalid DeepSeek API key format at startup.
  • For local profiles no key is needed; the node substitutes a dummy key (sk-local-dummy-key) internally because the OpenAI client requires a non-empty value.
  • serverbase is required: an empty value raises DeepSeek serverbase is required.

Profiles

The default profile is Cloud Reasoner (cloud-reasoner).

Cloud (DeepSeek API)

Served from https://api.deepseek.com/v1; requires a DeepSeek API key.

ProfileModelContext / output tokens
Cloud Reasoner (default)deepseek-reasoner128,000 / 4,096
Cloud Chatdeepseek-chat163,840 / 16,384

Local via Ollama

Served from serverbase (default http://localhost:11434/v1); no API key required. All local profiles are configured with 128,000 context / 4,096 output tokens. The model must already be pulled into Ollama before the pipeline runs.

ProfileModel
DeepSeek R1 1.5Bdeepseek-r1:1.5b
DeepSeek R1 7Bdeepseek-r1:7b
DeepSeek R1 8Bdeepseek-r1:8b
DeepSeek R1 14Bdeepseek-r1:14b
DeepSeek R1 32Bdeepseek-r1:32b
DeepSeek R1 70Bdeepseek-r1:70b
DeepSeek R1 671Bdeepseek-r1:671b
DeepSeek V3deepseek-v3

Via OpenRouter

These profiles have modelSource: openrouter and require an OpenRouter API key. They are not probed at save time.

ProfileModelContext / output tokens
DeepSeek: DeepSeek V3 0324deepseek-chat-v3-0324163,840 / 16,384
DeepSeek: DeepSeek V3.1deepseek-chat-v3.132,768 / 7,168
DeepSeek: R1deepseek-r164,000 / 16,000
DeepSeek: R1 0528deepseek-r1-0528163,840 / 32,768
DeepSeek: R1 Distill Llama 70Bdeepseek-r1-distill-llama-70b131,072 / 16,384
DeepSeek: R1 Distill Qwen 32Bdeepseek-r1-distill-qwen-32b32,768 / 32,768
TNG: DeepSeek R1T2 Chimeradeepseek-r1t2-chimera163,840 / 163,840
Nex AGI: DeepSeek V3.1 Nex N1deepseek-v3.1-nex-n1131,072 / 163,840
DeepSeek: DeepSeek V3.1 Terminusdeepseek-v3.1-terminus163,840 / 32,768
DeepSeek: DeepSeek V3.2deepseek-v3.2131,072 / 65,536
DeepSeek: DeepSeek V3.2 Expdeepseek-v3.2-exp163,840 / 65,536
DeepSeek: DeepSeek V3.2 Specialedeepseek-v3.2-speciale163,840 / 163,840
DeepSeek: DeepSeek V4 Flashdeepseek-v4-flash1,048,576 / 384,000
DeepSeek: DeepSeek V4 Prodeepseek-v4-pro1,048,576 / 384,000

Config validation

When a pipeline is saved, validateConfig runs a 1-token probe ("Hi") against the DeepSeek cloud API using the official openai SDK, but only when the configured model is deepseek-reasoner or deepseek-chat. Provider errors are surfaced as warnings with the HTTP status, error type, and message preserved (e.g. Error 401: authentication_error - ...); they do not block the save. All other profiles (local and OpenRouter) are skipped at save time and will only fail at runtime if misconfigured.


Upstream docs


Schema

FieldTypeDescriptionDefault
deepseek.profilestringModel
Deepseek LLM model
"cloud-reasoner"
modelstringModel
Deepseek model

Dependencies

  • openai
  • langchain-openai
  • langchain-core
  • langchain