{# AI Intent + AI Change Summary section — shared include for watch edit and tag/group edit. Required template context: llm_configured — bool: LLM provider is configured in settings form — the WTForms form (must have .llm_intent and .llm_change_summary fields) Optional (watch edit only): watch — the Watch object (for processor check and prefilter display) llm_intent_source — str: 'watch', tag title, or '' (for inherited-from-tag hint) Usage in watch edit (edit.html): {% include "edit/include_llm_intent.html" %} Usage in tag edit (edit-tag.html): {% include "edit/include_llm_intent.html" %} (watch is not set → tag mode: no processor check, no examples, different description) #} {# Watch edit: only show for text_json_diff processor #} {% if watch is defined and watch %} {% set is_text_json_diff = not watch.get('processor') or watch.get('processor') == 'text_json_diff' %} {% else %} {% set is_text_json_diff = true %} {% endif %} {% if is_text_json_diff %} {# ── Configured: show the intent + summary textareas ─────────────── #} {% if llm_configured %}
{{ _('Configure an AI/LLM provider in') }} {{ _('Settings → AI/LLM') }} {% if watch is defined and watch %} {{ _('to enable AI Change Intent and AI Change Summary.') }} {% else %} {{ _('to enable AI features for this group.') }} {% endif %}