mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-23 22:11:28 -05:00
refac
This commit is contained in:
1 parent
77d2000eb7
commit
57fc344873
1 file changed
+4
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user