Skip to main content
View source

OpenAI

View as Markdown

A RocketRide LLM node that connects OpenAI GPT models to a pipeline.

What it does​

Provides an OpenAI-backed chat LLM for agents and other nodes that need a language model. It can also be wired directly through the questions and answers lanes. The node uses langchain-openai (ChatOpenAI) and the openai SDK, routing reasoning-capable models through the Responses API while other models use Chat Completions.

Lanes​

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

Profiles​

Default: GPT-5.2 (openai-5-2).

ProfileModelContextOutput
openai-5-2 (default)gpt-5.2400,000128,000
gpt-5-6-solgpt-5.6-sol1,050,000128,000
gpt-5-6-terragpt-5.6-terra1,050,000128,000
gpt-5-6-lunagpt-5.6-luna1,050,000128,000
gpt-5-5gpt-5.51,050,000128,000
View 80 more models
ProfileModelContextOutput
custom(user-specified)16,384editable
openai-5-4gpt-5.41,050,000128,000
openai-5-4-progpt-5.4-pro1,050,000128,000
openai-5-4-minigpt-5.4-mini400,000128,000
openai-5-4-nanogpt-5.4-nano400,000128,000
openai-4ogpt-4o128,00016,384
openai-4o-minigpt-4o-mini128,00016,384
openai-5gpt-5400,000128,000
openai-5-1gpt-5.1400,000128,000
openai-5-minigpt-5-mini400,000128,000
openai-5-nanogpt-5-nano400,000128,000
gpt-3-5-turbogpt-3.5-turbo16,3854,096
gpt-3-5-turbo-16kgpt-3.5-turbo-16k16,3854,096
gpt-4gpt-48,1914,096
gpt-4-1gpt-4.11,047,57632,768
gpt-4-1-minigpt-4.1-mini1,047,57632,768
gpt-4-1-nanogpt-4.1-nano1,047,57632,768
gpt-4-turbogpt-4-turbo128,0004,096
gpt-5-1-chat-latestgpt-5.1-chat-latest128,00016,384
gpt-5-2-chat-latestgpt-5.2-chat-latest128,00016,384
gpt-5-3-chat-latestgpt-5.3-chat-latest128,00016,384
gpt-5-chat-latestgpt-5-chat-latest128,00016,384
o1o1200,000100,000
o3o3200,000100,000
o3-minio3-mini200,000100,000
o4-minio4-mini200,000100,000
gpt-4-turbo-previewgpt-4-turbo-preview128,0004,096
gpt-5-1-chatgpt-5.1-chat128,00016,384
gpt-5-3-chat (deprecated)gpt-5.3-chat128,00016,384
gpt-5-6-luna-progpt-5.6-luna-pro1,050,000128,000
gpt-5-6-sol-progpt-5.6-sol-pro1,050,000128,000
gpt-5-6-terra-progpt-5.6-terra-pro1,050,000128,000
gpt-5-chatgpt-5-chat128,00016,384
gpt-chat-latestgpt-chat-latest400,000128,000
gpt-latestgpt-latest1,050,000128,000
gpt-mini-latestgpt-mini-latest400,000128,000
gpt-oss-120bgpt-oss-120b131,072117,964
gpt-oss-120b-free (deprecated)gpt-oss-120b:free131,072131,072
gpt-oss-20bgpt-oss-20b131,072117,964
gpt-oss-20b-freegpt-oss-20b:free131,07232,768
gpt-oss-safeguard-20bgpt-oss-safeguard-20b131,07265,536
o3-mini-higho3-mini-high200,000100,000
o3-proo3-pro200,000100,000
o4-mini-higho4-mini-high200,000100,000
gpt-3-5-turbo-batchgpt-3.5-turbo:batch16,3854,096
gpt-4-1-batchgpt-4.1:batch1,047,57632,768
gpt-4-1-mini-batchgpt-4.1-mini:batch1,047,57632,768
gpt-4-1-nano-batchgpt-4.1-nano:batch1,047,57632,768
gpt-4-turbo-batchgpt-4-turbo:batch128,0004,096
gpt-4o-batchgpt-4o:batch128,00016,384
gpt-4o-mini-batchgpt-4o-mini:batch128,00016,384
gpt-5-1-batchgpt-5.1:batch400,000128,000
gpt-5-2-batchgpt-5.2:batch400,000128,000
gpt-5-2-chatgpt-5.2-chat128,00032,000
gpt-5-2-pro-batchgpt-5.2-pro:batch400,000128,000
gpt-5-4-batchgpt-5.4:batch1,050,000128,000
gpt-5-4-mini-batchgpt-5.4-mini:batch400,000128,000
gpt-5-4-nano-batchgpt-5.4-nano:batch400,000128,000
gpt-5-4-pro-batchgpt-5.4-pro:batch1,050,000128,000
gpt-5-5-batchgpt-5.5:batch1,050,000128,000
gpt-5-5-pro-batchgpt-5.5-pro:batch1,050,000128,000
gpt-5-6-luna-batchgpt-5.6-luna:batch1,050,000128,000
gpt-5-6-luna-pro-batchgpt-5.6-luna-pro:batch1,050,000128,000
gpt-5-6-sol-batchgpt-5.6-sol:batch1,050,000128,000
gpt-5-6-sol-pro-batchgpt-5.6-sol-pro:batch1,050,000128,000
gpt-5-6-terra-batchgpt-5.6-terra:batch1,050,000128,000
gpt-5-6-terra-pro-batchgpt-5.6-terra-pro:batch1,050,000128,000
gpt-5-batchgpt-5:batch400,000128,000
gpt-5-mini-batchgpt-5-mini:batch400,000128,000
gpt-5-nano-batchgpt-5-nano:batch400,000128,000
gpt-5-pro-batchgpt-5-pro:batch400,000128,000
gpt-6-astragpt-6-astra1,050,000128,000
gpt-6-astra-batchgpt-6-astra:batch1,050,000128,000
gpt-6-astra-progpt-6-astra-pro1,050,000128,000
gpt-6-astra-pro-batchgpt-6-astra-pro:batch1,050,000128,000
gpt-oss-120b-batchgpt-oss-120b:batch131,072117,964
gpt-oss-20b-batchgpt-oss-20b:batch131,072117,964
o3-batcho3:batch200,000100,000
o3-mini-batcho3-mini:batch200,000100,000
o4-mini-batcho4-mini:batch200,000100,000

Configuration​

Choose a profile to pin the OpenAI model and token limits; most users only need to select a profile and provide an API key. Preconfigured profiles keep model details fixed, while custom exposes the model name, context limit and output limit for models not listed here.

Custom models​

For custom, enter an OpenAI model ID and a positive context limit. The initial context value is 16,384 tokens; set it to the actual model limit so the pipeline can reject oversized prompts before sending them. Left empty, the output limit (modelOutputTokens) is the default model's; set it to your model's limit, keeping in mind that reasoning models count their thinking against it.

Authentication​

Set apikey to an OpenAI API key for every profile (including custom). The key is verified with a live one-word test call during pipeline validation, so a bad key or model name is reported before the pipeline runs rather than at first invoke.

Notes​

Reasoning streaming​

For models whose configuration carries capabilities.reasoning, the node builds a raw openai client alongside the LangChain one and streams answers via the Responses API with reasoning: {summary: 'auto'}. Reasoning-summary deltas are forwarded over the thinking SSE lane while the answer streams normally. Non-reasoning models use plain LangChain streaming with the profile's output limit. temperature is configurable on every profile (range 0-2, default 0, which is generally more deterministic than higher values, though OpenAI does not guarantee identical output for identical input); reasoning models ignore it, because OpenAI's Responses API controls sampling separately.

Validation and errors​

Pipeline validation makes a small live call to verify the API key and model name. Models whose names begin with gpt-5 are probed with max_completion_tokens; older models use max_tokens. Rate-limit and connection errors are retryable, while authentication and other API errors fail immediately with a provider-specific message.

Testing​

Automated node tests are declared in services.json:

  • Mock group: runs the openai-5-2, openai-5-4, openai-5-4-pro, openai-5-4-mini, and openai-5-4-nano profiles against a mocked langchain_openai; no real API key needed. ROCKETRIDE_MOCK must point to nodes/test/mocks.
  • Real group: skipped unless ROCKETRIDE_OPENAI_KEY is set; calls the live API with the openai-4o-mini profile.

Schema​

FieldTypeDescriptionDefault
modelstringModel
OpenAI model
modelOutputTokensintegerOutput Tokens
Most tokens the model may write in one reply (at least 1,024). Leave it empty to keep the node's default. Reasoning models count their thinking against this limit: set it well above the reply you expect, or they can spend it all thinking and return nothing. It cannot exceed Tokens; a larger value is lowered to it.
modelTotalTokensnumberTokens
Total Tokens
openai.profilestringModel
LLM model
"openai-5-2"
temperaturenumberTemperature
Sampling temperature for non-reasoning models: 0 is generally more deterministic, higher values increase variety. Ignored for reasoning models (o1, o3, GPT-5 reasoning variants, ...), which OpenAI's Responses API controls separately.
0

Dependencies​

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