-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix a couple of bugs #184
Fix a couple of bugs #184
Conversation
|
|
||
const msg = ChatMessage.create({ text: collectedText, role: ChatRole.ASSISTANT }); | ||
this.chatCtx.messages.push(msg); | ||
if (handle.addToChatCtx && (!userQuestion || handle.userCommitted)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was nested in an if when I think it wasn't supposed to be so AGENT_SPEECH_INTERRUPTED/COMMITTED were never firing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, thanks! just one nitpick and i'll merge it.
plugins/deepgram/src/stt.ts
Outdated
@@ -261,12 +261,14 @@ export class SpeechStream extends stt.SpeechStream { | |||
if (isFinal) { | |||
this.queue.put({ | |||
type: stt.SpeechEventType.FINAL_TRANSCRIPT, | |||
alternatives: [alternatives[0], ...alternatives.splice(0)], | |||
// Ensures that TS knows that the array is not empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you delete these comments? these are helpful at review time but not so much as code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't agree (would have been useful to me when reading this code), but sure, removed
No description provided.