{% extends 'base.html' %} {% from '_macros.html' import assistant_avatar %} {% block title %}{{ assistant.title }} - {{ get_app_name() }}{% endblock %} {% block content %}
{{ assistant_avatar(assistant, size='xl') }}

{{ assistant.title }}

{% if assistant.description %}

{{ assistant.description }}

{% endif %}
{% if is_expired %} 链接已过期 {% elif assistant.status == 'disabled' %} 已禁用 {% else %} 启用中 {% endif %}
返回列表 对话审计 ({{ conv_count }} 学生) 投屏 试聊 编辑 导出模板
学生访问链接
链接有效期至 {% if assistant.link_expires_at %} {{ assistant.link_expires_at.strftime('%Y-%m-%d %H:%M') }} {% else %} 未设置 {% endif %}
每生每日上限 {{ assistant.max_messages_per_student_daily or 50 }} 条
学生需在同一局域网/校园网内才能访问。 {% if assistant.roster_mode == 'strict' %} 老师已启用花名册校验,学生需从下拉中选择班级和姓名。 {% else %} 打开链接后填写「班级 + 姓名」即可开始对话。 {% endif %}
学生扫码进入
使用模型
{{ model_capabilities.get(assistant.selected_model_name, {}).get('label', assistant.selected_model_name or '默认') }}
已对话学生
{{ conv_count }}
消息总数
{{ msg_count }}
多模态
{% if assistant.allow_image_input %}{% endif %} {% if assistant.allow_file_upload %}{% endif %} {% if assistant.allow_image_generation %}{% endif %} {% if not assistant.allow_image_input and not assistant.allow_file_upload and not assistant.allow_image_generation %} 仅文字 {% endif %}
系统提示词
{% if assistant.system_prompt %}
{{ assistant.system_prompt }}
{% else %}

暂未设置系统提示词

{% endif %} {% if assistant.welcome_message %}
欢迎语:
{{ assistant.welcome_message }}
{% endif %}
知识库 学生提问时,AI 会自动引用最相关的资料片段回答
{% if not kb_enabled %}
知识库需要硅基流动 API Key做资料向量化(免费,与对话模型无关), 请先到 个人设置 配置后再上传资料。
{% else %}
支持 PDF / Word / TXT / Markdown 等,单文件 ≤ 10MB
{% if kb_docs %}
{% for d in kb_docs %} {% endfor %}
资料知识片段上传时间
{{ d.file_name }} {% if d.status != 'ready' %}失败{% endif %} {{ d.chunk_count }} 段 {{ d.created_at.strftime('%m-%d %H:%M') if d.created_at else '—' }}
{% else %}

还没有上传资料。上传教材、教案、课文后,AI 导师回答学生时会优先依据这些资料。

{% endif %} {% endif %}
{% endblock %}