{%- if 'ai_summary_server' not in locked_preferences -%}
{{- '' -}} {{- _('AI server URL') -}}{{- '' -}}
{{- '' -}} {{- '' -}}
{{- '' -}}
{{- _('URL of the OpenAI compatible LLM server that generates the summaries (e.g. Ollama, LM Studio, vLLM), e.g. http://192.168.1.10:11434.') -}} {{- ' ' -}} {%- if ai_summary_default_server -%} {{- _('Leave empty to use the default of this instance.') -}} {%- endif -%}
{{- '' -}}
{{- '' -}} {%- endif -%} {%- if 'ai_summary_api_key' not in locked_preferences -%}
{{- '' -}} {{- _('AI server API key') -}}{{- '' -}}
{{- '' -}} {{- '' -}}
{{- '' -}}
{{- _('Optional, only needed if your server requires authentication.') -}}
{{- '' -}}
{{- '' -}} {%- endif -%} {%- if 'ai_summary_model' not in locked_preferences -%}
{{- '' -}} {{- _('AI summary model') -}}{{- '' -}}
{{- '' -}} {{- '' -}} {%- for model in ai_summary_models -%} {%- endfor -%} {{- '' -}}
{{- '' -}}
{{- _('Name of the model used to generate the summaries, e.g. llama3.2:3b or gemma3:4b.') -}} {{- ' ' -}} {%- if ai_summary_default_model -%} {{- _('Leave empty to use the default of this instance.') -}} {%- endif -%}
{{- '' -}}
{{- '' -}} {%- endif -%} {%- if 'ai_summary_grounding' not in locked_preferences -%}
{{- '' -}} {{ _('Ground AI summary on search results') }}{{- '' -}}

{{- '' -}} {{- '' -}}

{{- '' -}}
{{- _('Send the top search results along with the query, the model answers from this context instead of its own knowledge. Answers are more accurate and more current, but generating them is slower and needs more memory (VRAM) on the Ollama server.') -}}
{{- '' -}}
{{- '' -}} {%- endif -%}