openai / openai-openapi

OpenAPI specification for the OpenAI API
https://platform.openai.com/docs/api-reference/introduction
MIT License
1.24k stars 360 forks source link

realtime beta api spec #341

Open StephenHodgson opened 1 day ago

StephenHodgson commented 1 day ago

Hi I was wondering when the reatime api spec will be added?

I see there are docs but wasn't able to find them in the current spec.

benadamdev commented 1 day ago

I don't think that's possible. This spec is primarily designed for HTTP-based RESTful APIs. Realtime API is a WebSocket API not a RESTful one.

StephenHodgson commented 1 day ago

@benadamdev there's no reason why it cannot be added. the only real difference is the protocol. Path and payload objects are still defined in json.

I thought OpenAPI had websocket spec proposal? ... oh it was never accepted 😕

Well in either case it'd be great to have a machine readable spec for the json objects and paths 🤷

StephenHodgson commented 1 day ago

fwiw there are ways to use fastapi to build out ws paths...