Hey everyone! I’m working on adding a real-time ChatGPT integration for my project Homeway. But I’m hitting some odd issues I don’t think the docs explain very well.
For context, I’m using the official c# SDK and have followed the real-time example in the repo. I’m using 4o-mini and text only.
Occasionally, the real-time response will have no items created in the response.
I logged every event sent back and saw ResponseStarted
and then ResponseFinished
with no other events. In the working scenario, I see the item-created events, delta streaming, etc. I also checked the ResponseFinished
object; its created items array is empty. I’m sure I added a user message and then sent the start reply message, so I have no idea why it’s responding with nothing.
Proper Use Of The Websocket API
I assumed since I created a session and the WebSocket is active, I wouldn’t have to resend all of the past messages as I do with the chat completion REST API. But it seems that’s not the case. It looks like the instructions are applied to every message, but it seems unless I write each user and assistant message every time, the response has no memory of the past conversation.
Is that expected? I can’t find anything about the expected behavior on the website API docs or in the SDK.
If anyone has any insight, I would love to hear it!