Setup
Set your OpenAI API key in the worker environment. Generate a key from the OpenAI dashboard:Usage
Import the plugin and pass it to the pipeline’sllm slot.
The default model is
gpt-5.4-nano.Low-latency streaming
Setstreaming to use OpenAI’s WebSocket Responses API instead of HTTP chat
completions. The connection is reused across turns and continues with
previous_response_id for lower per-turn latency.
Azure OpenAI
To run OpenAI chat models through Azure OpenAI, use the separateAzureOpenAILLM
plugin. It reads its configuration from Azure environment variables when arguments are
omitted:
AzureOpenAILLM ships in the Python SDK only. The Node JS SDK does not ship an Azure OpenAI
provider.deployment is the custom name you chose when deploying a model in Azure (not the
underlying model name). Authenticate with api_key, or fall back to the
AZURE_OPENAI_API_KEY environment variable.Configuration Options
Constructor parameters forOpenAILLM. The Python and Node JS SDKs share these field names.
Core
Sampling
Reasoning models
Streaming & client
Import paths
Azure OpenAI is provided by the separate
AzureOpenAILLM plugin
(from zeroruntime.plugins import AzureOpenAILLM).