Skip to content

[FEATURE]:Add Support for Realtime API with WebSocket from OpenAI #14891

@thetanav

Description

@thetanav

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Add support to openai's Realtime API with WebSocket for existing models and remove older rest approach. This will make the responses ~30x faster for openai provider models.

Suggested edits:

  • use the ai-sdk-openai-websocket-fetch package from ai sdk as drop in replacemen.
  • extra add a onFinish in streamText to close the ws

For side by side comparision:

open ai docs
ai sdk docs

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions