This commit is contained in:
Timothy Jaeryang Baek 2026-09-06 18:30:00 -04:00
parent 77d2000eb7
commit 57fc344873

View file

@ -2752,10 +2752,13 @@
const chatCompletionEventHandler = async (data, message, chatId) => {
const { id, done, choices, content, output, sources, selected_model_id, error, usage } = data;
// Store raw OR-aligned output items from backend
// Store raw OR-aligned output items from backend
if (output) {
message.output = output;
message.content = getOutputText(output);
if (data.type === 'response.output_text.delta' && navigator.vibrate && $settings?.hapticFeedback) {
navigator.vibrate(5);
}
dispatchCallOverlayAudio(message);
}