mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 13:25:20 +00:00
refac: note editor model selection
This commit is contained in:
parent
d4dfece4f9
commit
bd44ab64d0
2 changed files with 4 additions and 8 deletions
|
|
@ -778,6 +778,10 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,
|
|||
}
|
||||
}
|
||||
|
||||
if (!selectedModelId) {
|
||||
selectedModelId = $models.at(0)?.id || '';
|
||||
}
|
||||
|
||||
const dropzoneElement = document.getElementById('note-editor');
|
||||
|
||||
dropzoneElement?.addEventListener('dragover', onDragOver);
|
||||
|
|
|
|||
|
|
@ -301,14 +301,6 @@ Based on the user's instruction, update and enhance the existing notes by incorp
|
|||
await goto('/');
|
||||
}
|
||||
|
||||
if ($settings?.models) {
|
||||
selectedModelId = $settings?.models[0];
|
||||
} else if ($config?.default_models) {
|
||||
selectedModelId = $config?.default_models.split(',')[0];
|
||||
} else {
|
||||
selectedModelId = '';
|
||||
}
|
||||
|
||||
editorEnabled = localStorage.getItem('noteEditorEnabled') === 'true';
|
||||
|
||||
loaded = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue