{# Vendored from governor_web/templates/settings/llm.html @ 19455c57c5a9. Audit doesn't store the API key in DB (no organisation_settings table) — the key still lives in env (GEMINI_API_KEY / GOOGLE_API_KEY). The "Status" pill reads "Configured" iff the env var is set. #} {% extends "settings/layout.html" %} {% block settings_content %}

AI / LLM

Configure the language model used for the best-practices review on the top-N most expensive jobs.

{% if errors and errors.get('_general') %}
{{ errors['_general'] }}
{% endif %} {% if saved %}
Settings saved.
{% endif %}
{# Provider — read-only display + env-var status #}

Provider

{% if api_key_set %}

Configured (env var)

{% else %}

Not configured

{% endif %}

The API key is read from GEMINI_API_KEY / OPENAI_API_KEY / ANTHROPIC_API_KEY at scan time. Audit doesn't persist API keys.

{# Model Configuration #}

Model Configuration

Used for generating best-practices findings.

Used for classification + lighter calls.

{# Parameters #}

Parameters

{# Audit-specific scope: top N + min confidence #}

Review Scope

Bounds LLM cost per scan.

Findings below this score are dropped.

{% endblock %}