Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When transitioning between agents - consistent error "Conversation already has an active response" is logged #3

Open
chnl opened this issue Jan 18, 2025 · 3 comments

Comments

@chnl
Copy link

chnl commented Jan 18, 2025


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
}
}

@chnl
Copy link
Author

chnl commented Jan 18, 2025

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

@tadeumaia
Copy link

Having the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@chnl @tadeumaia and others