Usage guide
Setup, environment variables, and Python/JavaScript/Go usage examples.
OpenAILLM
Language model using OpenAI’s GPT chat models with your own OpenAI key. Supports tool calling, reasoning controls and an optional persistent WebSocket mode for lower latency. Authenticates with OPENAI_API_KEY from your environment, or an explicitapi_key.
Fields
Chat model to use, e.g. “gpt-5.4-nano” or “gpt-6-luna”. Defaults to ‘gpt-5.4-nano’.
Custom API base URL, for a proxy or an OpenAI-compatible server. Defaults to None (not set).
Sampling temperature, 0 to 2. Lower is more focused and repeatable, higher is more varied. Defaults to 0.7.
Whether the model may call tools: “auto” lets it decide, “required” forces a tool call, “none” disables tools. Defaults to ‘auto’.
Maximum number of tokens the model may generate per reply. Defaults to None (not set).
Nucleus sampling cutoff, 0 to 1. Usually tune this or temperature, not both. Defaults to None (not set).
Penalizes tokens in proportion to how often they have appeared, -2.0 to 2.0. Positive values reduce repetition. Defaults to None (not set).
Penalizes tokens that have already appeared at all, -2.0 to 2.0. Positive values push toward new topics. Defaults to None (not set).
Integer seed for best-effort deterministic sampling across identical requests. Defaults to None (not set).
Whether the model may call several tools in a single turn. Defaults to None (not set).
HTTP timeout for API calls, in seconds or as an httpx.Timeout. Defaults to None (not set).
Additional HTTP headers sent with every API request. Defaults to None (not set).
Additional query-string parameters sent with every API request. Defaults to None (not set).
Additional JSON body fields sent with every API request, for options not exposed here. Defaults to None (not set).
How much the model reasons before answering: “none”, “minimal”, “low”, “medium”, “high”, “xhigh” or “max”. Reasoning and GPT-5 models only. Defaults to None (not set).
Length and detail of replies: “low”, “medium” or “high”. Reasoning and GPT-5 models only. Defaults to None (not set).
Use OpenAI’s WebSocket Responses API, keeping one connection open across turns for lower per-turn latency. Defaults to False.
Whether OpenAI stores responses server-side. Only applies when streaming is on; turn off for zero data retention. Defaults to True.
Custom WebSocket URL for the Responses API when streaming is on. Defaults to None (not set).
ZRTLLM
Language model served from the hosted OpenAI-compatible endpoint, running open models such as Gemma. Choose it for open-weight models without managing your own server. Authenticates with OPENAI_API_KEY from your environment, or an explicitapi_key.
Fields
Chat model to use, e.g. “google.gemma-4-31b”. Defaults to ‘google.gemma-4-31b’.
Custom base URL for the OpenAI-compatible endpoint. Defaults to None (not set).
Sampling temperature, 0 to 2. Lower is more focused and repeatable, higher is more varied. Defaults to 0.7.
Whether the model may call tools: “auto” lets it decide, “required” forces a tool call, “none” disables tools. Defaults to ‘auto’.
Maximum number of tokens the model may generate per reply. Defaults to None (not set).
Nucleus sampling cutoff, 0 to 1. Usually tune this or temperature, not both. Defaults to None (not set).
Penalizes tokens that have already appeared at all, -2.0 to 2.0. Positive values push toward new topics. Defaults to None (not set).