mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-07 08:27:05 +00:00
refac
This commit is contained in:
parent
77d2000eb7
commit
57fc344873
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue