Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Jan 11, 2025
1 parent 839c230 commit 8cedb49
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/tasks/llm/llms/openai_s2s.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,14 @@ class TaskLlmOpenAI_S2S extends Task {

/* server errors of some sort */
else if (type === 'error') {
// Some error messages are expected and can be ignored
if ([
// When user speak will cancel openAI session, openAI will return this error if the session is already cancelled
'Cancellation failed: may already be cancelled'
].includes(evt.error.message)) {
this.logger.info({evt}, `TaskLlmVoiceAgent_S2S:error ${evt.error.message}, ignoring`);
return;
}
endConversation = true;
this.results = {
completionReason: 'server error',
Expand Down

0 comments on commit 8cedb49

Please sign in to comment.