refactor(ui): split settings modal into section templates with shared macros

This commit is contained in:
Will Miao
2026-08-21 09:14:52 +08:00
parent bbe0acac5c
commit cb4fd3a0e6
6 changed files with 1019 additions and 1483 deletions
+3
View File
@@ -904,6 +904,9 @@ export class SettingsManager {
// Helper to update model Combobox presets from catalog / Ollama API
const llmModelInput = document.getElementById('llmModel');
this._llmModelCombobox = null;
if (llmModelInput) {
llmModelInput.value = state.global.settings.llm_model || '';
}
if (llmModelInput && typeof Combobox !== 'undefined') {
const currentProvider = llmProviderSelect ? llmProviderSelect.value : 'openai';
const fallbackModels = currentProvider === 'ollama' ? [] : (this._providerModels[currentProvider] || []);