{# #374: the AI section of /ui/health: `tkt ai doctor --json`, never `--live` (a live call loads or downloads a model and may cost). This machine's setup: only a local source has the view. The checks and the secret findings are grouped by alert level, worst first (#376). #} {% from "_health_groups.html" import level_groups %} {% if error %}

AI

Run it yourself: {{ cmd }}

{% else %}

AI

This machine's AI setup: no store text is sent and no provider is called. A real call to each provider set up: {{ cmd }} --live.

{% for name, layer in ai.layers.items() %} {% endfor %}
{{ name }} {{ layer.provider }}{% if layer.placeLabel %} on {{ layer.placeLabel }}{% endif %}, from {{ layer.sourceLabel }}{% if layer.source == "server" and ai.project and ai.project.name %} ({{ ai.project.name }}){% endif %}: {{ layer.egress }} {% if layer.failure %}
fail: {{ layer.failure.detail | codespans }}{% if layer.failure.fix %}
fix: {{ layer.failure.fix | codespans }}{% endif %}
{% endif %} {% if layer.suggest %}
Tip: {{ layer.suggest | codespans }}
{% endif %}
{% set m = ai.machine %}

This machine

{{ m.os }} {{ m.arch }}, {{ "%s GB" % m.ramGb if m.ramGb else "RAM unknown" }}, GPU: {{ m.gpu }}

Checks and findings

{% call(c) level_groups(groups, ("Check", "Status", "Detail", "Fix")) %} {% if c.kind == "finding" %} {{ c.code }}warning {{ c.message | codespans }} {% else %} {{ c.name }}{{ c.status }} {{ c.detail | codespans }} {% if c.fix and c.status != "ok" %}{{ "fix" if c.status == "fail" else "hint" }}: {{ c.fix | codespans }}{% endif %} {% endif %} {% endcall %}

Options

{% for name, layer in ai.layers.items() %} {{ name }}: the steps to set up each option {% for o in ai.options if o.layer == name %}

{{ o.title }} on {{ o.placeLabel }} ({{ o.egress }})

{% endfor %} {% endfor %}
As JSON: {{ cmd }} --json
{{ ai | tojson(indent=2) }}
{% endif %}