Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Heuristic:Openai Openai node Warning Deprecated Beta Realtime

From Leeroopedia
Knowledge Sources
Domains SDK, Deprecation, Realtime
Last Updated 2026-02-15 14:00 GMT

Overview

Deprecation warning: the Beta Realtime resource namespace is deprecated now that the Realtime API has reached General Availability.

Description

The Beta Realtime resource class (`src/resources/beta/realtime/realtime.ts`) is marked as @deprecated with the message: Realtime has now launched and is generally available. The old beta API is now deprecated. Users should migrate to the stable Realtime API clients and resource classes.

The deprecation affects:

  • `src/resources/beta/realtime/realtime.ts` — The beta resource namespace and its type definitions

The stable replacements are:

  • `src/realtime/websocket.ts` — Stable `OpenAIRealtimeWebSocket` client
  • `src/realtime/internal-base.ts` — Stable base class
  • `src/resources/realtime/realtime.ts` — Stable resource with GA type definitions

Usage

Apply this warning when encountering code that imports from `client.beta.realtime`. Users should switch to the stable `client.realtime` namespace and the non-beta WebSocket clients.

The Insight (Rule of Thumb)

  • Action: Replace `client.beta.realtime` usage with `client.realtime` and use the stable `OpenAIRealtimeWebSocket` or `OpenAIRealtimeWS` classes from the non-beta module paths.
  • Value: The stable API provides the same functionality with GA-level support and stability guarantees.
  • Trade-off: None significant; the stable API is a direct replacement. Some type names may have changed.

Reasoning

The Realtime API has graduated from beta to General Availability. The beta namespace remains for backward compatibility but receives no new features. The stable namespace at `src/realtime/` and `src/resources/realtime/` contains the actively maintained implementation with the full GA type definitions.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment