You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i added some changes ... Added hasActiveResponse state to track when a response is in progress
Enhanced cancelAssistantSpeech to properly wait for cancellation
Added response state handling in the server event handler
Added checks before creating new responses
Updated function call handling to manage response states
Added error case handling for active response detection
Modified the useHandleServerEvent hook to include an isResponseActive flag. This flag prevents sending multiple response.create events when a response is already active, addressing the 'Conversation already has an active response' error.
Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.
Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.
▼
error
9:25:44 AM
{
"type": "error",
"event_id": "event_Ar6ro3RxP6glOpddi8ML0",
"error": {
"type": "invalid_request_error",
"code": null,
"message": "Conversation already has an active response",
"param": null,
"event_id": null
}
}
The text was updated successfully, but these errors were encountered: