Skip to main content
OpenAI is an LLM plugin. It takes the transcribed conversation and generates the reply using OpenAI’s chat models, with tool calling and an optional low-latency WebSocket streaming mode.

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’s llm slot.
The default model is gpt-5.4-nano.

Low-latency streaming

Set streaming 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 separate AzureOpenAILLM 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 for OpenAILLM. 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).
The reply is streamed to the text-to-speech plugin, which synthesizes the agent’s voice.