{% extends "base.html" %} {% block title %}설정 — CPGuard{% endblock %} {% block head %} {% endblock %} {% block content %}

설정

LLM 트리아지·AI 분석에 쓸 API 키를 넣습니다. 키는 이 PC의 ~/.cpguard/config.json 에만 저장되고(권한 축소), 외부로 전송되지 않습니다. 저장 즉시 적용되며 재시작이 필요 없습니다.

{% csrf_token %} {% for r in rows %}
{{ r.label }} {% if r.set %}설정됨{% else %}미설정{% endif %} {% if r.masked %}{{ r.masked }}{% else %}—{% endif %}
{% if r.set %} {% endif %}
{% for m in r.model_options %}{% endfor %}
{% endfor %} {% for e in extras %}
{{ e.label }} {% if e.set %}설정됨{% else %}선택{% endif %}
{% if e.set %} {% endif %}
이름이 아니라 ID 입니다 — wrkspc_01AbCd… 형식. console.anthropic.com → Settings → Workspaces 의 ID 열에서 복사하세요 (Default 는 이름이라 안 됩니다).
더 쉬운 방법: 키를 특정 워크스페이스로 제한해 새로 발급하면 이 값이 아예 필요 없습니다.
{% endfor %}
보고서 정보 PDF 표지·개정이력에 들어갑니다. 비우면 기본값(CPGuard)
{% for f in report_fields %}
{% endfor %}
홈으로 사용 가능: {% if providers %}{{ providers|join:", " }}{% else %}없음 — 위에 키를 넣어 활성화하세요{% endif %}

키 발급 위치 — Claude: console.anthropic.com · OpenAI: platform.openai.com/api-keys · Gemini: aistudio.google.com/apikey. 환경변수(ANTHROPIC_API_KEY 등)가 이미 설정돼 있으면 그쪽이 우선합니다.

보고서 양식

발주처마다 요구가 다르고 사업별로 양식이 쌓입니다. 어떤 절을 넣을지 저장해 두고 산출물을 내보낼 때 고릅니다.

{% if templates %} {% for t in templates %} {% endfor %}
이름상세소스의견제외기준목록대상현황
{{ t.name }}{% if t.references %} · {{ t.references }}{% endif %} {% if t.include_detail %}✔{% else %}—{% endif %} {% if t.include_source %}✔{% else %}—{% endif %} {% if t.include_comment %}✔{% else %}—{% endif %} {% if t.include_exclusions %}✔{% else %}—{% endif %} {% if t.include_rule_list %}✔{% else %}—{% endif %} {% if t.include_scope %}✔{% else %}—{% endif %}
{% csrf_token %}
{% endif %}
{% csrf_token %}
같은 이름이면 덮어씁니다
{% endblock %}