UI: make editing a configured LLM model discoverable (#4400)

Co-authored-by: dgtlmoon <dgtlmoon@gmail.com>
This commit is contained in:
Corey Quinn
2026-09-20 08:06:04 +02:00
committed by GitHub
co-authored by dgtlmoon
parent 9c5600087a
commit 8776c205dc
25 changed files with 292 additions and 26 deletions
@@ -57,6 +57,11 @@
<div class="stab-overview-cta">
{% if llm_config and llm_config.get('model') %}
<span class="stab-configured-badge">&#10003; {{ _('AI / LLM configured:') }} {{ llm_config.get('model') }}</span>
{% if not llm_env_configured %}
<button type="button" class="pure-button" data-stab-goto="provider">
<i data-feather="settings"></i> {{ _('Edit provider') }} &rarr;
</button>
{% endif %}
{% else %}
<button type="button" class="pure-button pure-button-primary" data-stab-goto="provider">
<i data-feather="settings"></i> {{ _('Configure AI Provider') }} &rarr;
@@ -164,7 +169,11 @@
<div class="pure-control-group">
{{ render_field(form.llm.form.model,
placeholder=_("Enter API key and click 'Load available models'")) }}
placeholder=_("Type a model name or choose from available models"),
aria_describedby="llm-model-help") }}
<span class="pure-form-message-inline" id="llm-model-help">
{{ _('You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API key blank to keep your saved key.') }}
</span>
</div>
{% if llm_config and llm_config.get('model') %}
@@ -174,6 +183,11 @@
&#10003; {{ _('AI / LLM configured:') }} {{ llm_config.get('model') }}
</span>
&nbsp;
<button type="button" class="pure-button button-xsmall"
onclick="const field = document.getElementById('{{ form.llm.form.model.id }}'); field.focus(); field.select();">
{{ _('Change model') }}
</button>
&nbsp;
{# data-method="POST" tells modal.js to POST with the CSRF token instead of
navigating — GET previously allowed <img>-based CSRF wipe (GHSA-g36r-fm2p-87xm).
Stays as <a> because we're inside the outer settings <form> — nested forms are
@@ -976,6 +976,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1078,8 +1082,18 @@ msgid "choose a model"
msgstr "vybrat model"
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgstr "Vložit API klíč a kliknout na 'Načíst dostupné modely'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Remove AI / LLM configuration?"
@@ -992,6 +992,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1094,7 +1098,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -974,6 +974,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1076,7 +1080,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -974,6 +974,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1076,7 +1080,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -1012,6 +1012,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1114,7 +1118,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -980,6 +980,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1082,7 +1086,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -1019,6 +1019,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr "AI / LLM dikonfigurasi:"
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr "Konfigurasikan Penyedia AI"
@@ -1145,8 +1149,18 @@ msgid "choose a model"
msgstr "pilih model"
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgstr "Masukkan kunci API lalu klik 'Muat model yang tersedia'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Remove AI / LLM configuration?"
@@ -976,6 +976,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1078,7 +1082,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -981,6 +981,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1083,7 +1087,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -978,6 +978,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr "AI / LLM 설정됨:"
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr "AI 프로바이더 설정"
@@ -1084,8 +1088,18 @@ msgid "choose a model"
msgstr "모델 선택"
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgstr "API 키를 입력하고 '사용 가능한 모델 불러오기'를 클릭하세요"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Remove AI / LLM configuration?"
+16 -2
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: changedetection.io 0.60.7\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2026-09-18 01:54+0900\n"
"POT-Creation-Date: 2026-09-20 07:41+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -973,6 +973,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1075,7 +1079,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -1043,6 +1043,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr "Skonfigurowana sztuczna inteligencja / model językowy o dużej skali (LLM):"
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr "Skonfiguruj dostawcę usług AI"
@@ -1176,8 +1180,18 @@ msgid "choose a model"
msgstr "wybierz model"
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgstr "Wprowadź klucz API i kliknij „Załaduj dostępne modele”"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Remove AI / LLM configuration?"
@@ -999,6 +999,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1101,7 +1105,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -1021,6 +1021,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr "AI/LLM настроено:"
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr "Настройка поставщика AI"
@@ -1150,8 +1154,18 @@ msgid "choose a model"
msgstr "выбрать модель"
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgstr "Введите ключ API и нажмите «Загрузить доступные модели»."
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Remove AI / LLM configuration?"
@@ -1009,6 +1009,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1111,7 +1115,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -989,6 +989,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1091,7 +1095,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -979,6 +979,10 @@ msgstr ""
msgid "AI / LLM configured:"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr ""
@@ -1081,7 +1085,17 @@ msgid "choose a model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
@@ -978,6 +978,10 @@ msgstr "AI 僅會看到變更內容的統一差異(Unified Diff)— 絕非
msgid "AI / LLM configured:"
msgstr "已設定 AI / LLM"
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Edit provider"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Configure AI Provider"
msgstr "設定 AI 供應商"
@@ -1085,8 +1089,18 @@ msgid "choose a model"
msgstr "選擇模型"
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Enter API key and click 'Load available models'"
msgstr "輸入 API 金鑰並點擊「載入可用模型」"
msgid "Type a model name or choose from available models"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid ""
"You can edit the model name directly or load available models above. Click Save to apply your change. Leave the API "
"key blank to keep your saved key."
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Change model"
msgstr ""
#: changedetectionio/blueprint/settings/templates/settings_llm_tab.html
msgid "Remove AI / LLM configuration?"