{% extends "admin/_layout.html" %} {% from "_macros.html" import icon %} {% set section = "general" %} {% block title %}General - LLeMbas{% endblock %} {% block heading %}General{% endblock %} {% block admin_content %}

Instance-wide settings. These are stored in the database and take effect immediately — no restart, and they survive one.

{% if saved %}
{{ icon("check", "icon--sm") }} Settings saved.
{% endif %}

Identity

Shown in the browser tab and on the sign-in page.

Default system prompt

Applied to every chat that does not have a prompt of its own. A model's prompt overrides this, and a chat's prompt overrides both — most specific wins outright rather than the three being stacked together.

Leave empty to send no system prompt at all.

Compaction

A long conversation eventually fills the model's context. When it gets close, the earlier turns are summarised and the summary is sent in their place. The messages themselves are kept and stay readable in the transcript — they simply stop being sent.

Percent of the model's context length. 0 turns automatic compaction off; the button in each chat still works. Nothing happens for a model whose context length is unset under Models — that is "unknown", not "small", and this will not act on a number nobody supplied. The wording of the summary is under Prompts.

Registration {% if values.allow_signup %} open {% else %} closed {% endif %}

Turn this off once your users exist. Sign-in is unaffected — existing accounts keep working, and the "Create one" link disappears from the sign-in page.

{% if values.allow_signup and user_count > 0 %}
{{ icon("warning", "alert__icon") }}
Registration is open.
This instance has {{ user_count }} account{{ '' if user_count == 1 else 's' }}. Anyone who can reach it can add another, and every account can use your configured models and API keys.
{% endif %}

LEMBAS_ALLOW_SIGNUP in the environment sets only the starting value. Once saved here, this setting wins.

{% endblock %}