Hey All! I’m using the real-time WebSocket for my application, and it’s working great, except for one issue. About 5% of the time, I get a ResponseStarted
event and then a ResponseFinished
event with nothing in between. The call pattern is the same as the rest of the calls, as I add items on the client side I see the ItemCreated
, but then no response. The events look something like this:
<chat started>
ItemCreated
ItemCreated
ItemCreated
ItemCreated
ItemCreated
ItemCreated
ItemCreated
ResponseStarted
ResponseFinished
<there should be a text message back>
Can anyone help me debug this? Here’s an example ResponseFinished
event I got back
{"ResponseId":"resp_AsH1vzhla7HVUuSqX8Db3","Status":{},"StatusDetails":{"StatusKind":{}},"CreatedItems":[],"Usage":{"TotalTokens":0,"InputTokens":0,"OutputTokens":0,"InputTokenDetails":{"CachedTokens":0,"TextTokens":0,"AudioTokens":0},"OutputTokenDetails":{"TextTokens":0,"AudioTokens":0}},"Kind":8,"EventId":"event_AsH1vq61MwMMUmHWAZDHN"}
From that, since it says there are no input tokens, I’m guessing it’s not properly getting the items I’m creating and sending from the client side?
P.S. I’m also using the text only modality, if that matters.