Skip to content

Commit

Permalink
Add better error messages to debug log.
Browse files Browse the repository at this point in the history
  • Loading branch information
lublagg committed Dec 9, 2024
1 parent 68449ae commit 42601b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/assistant-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const AssistantModel = types

} catch (err) {
console.error("Failed to handle message submit:", err);
transcriptStore.addMessage(DEBUG_SPEAKER, {description: "Error processing request", content: formatMessage(err)});
transcriptStore.addMessage(DEBUG_SPEAKER, {description: "Failed to handle message submit", content: formatMessage(err)});
}
});

Expand Down Expand Up @@ -91,7 +91,7 @@ const AssistantModel = types
);
} catch (err) {
console.error("Failed to complete run:", err);
transcriptStore.addMessage(DEBUG_SPEAKER, {description: "Error processing request", content: formatMessage(err)});
transcriptStore.addMessage(DEBUG_SPEAKER, {description: "Failed to complete run", content: formatMessage(err)});
}
});

Expand Down

0 comments on commit 42601b5

Please sign in to comment.