{% extends "admin.html" %} {% block admin_content %}

{% if is_en %}Models{% else %}模型管理{% endif %}

{% if is_en %}Only the global model catalog is managed here. API keys and tokens normally stay in each client's secure storage; manual sync may upload only client-encrypted opaque account records. Built-in web search runs in the clients; this website never receives or proxies search queries or page content.{% else %}这里只管理全局模型目录;API Key/Token 平时保存在各客户端安全存储,手动同步也只能上传客户端加密的不透明账户记录。内置网络搜索只在客户端运行,网站不接收或代理搜索词与页面正文。{% endif %}

{% if is_en %}Add model{% else %}新增模型{% endif %}
{% if is_en %}{% endif %}
{% if is_en %}OpenAI-compatible interface{% else %}OpenAI 兼容接口{% endif %}{% if is_en %}Default interface{% else %}默认接口{% endif %}
{% if is_en %}Anthropic-compatible interface{% else %}Anthropic 兼容接口{% endif %}{% if is_en %}Add when needed{% else %}按需添加{% endif %}
{% if is_en %}Responses-compatible interface{% else %}Responses 兼容接口{% endif %}{% if is_en %}Add when needed{% else %}按需添加{% endif %}
{% if let Some(message) = load_error %}{% endif %} {% if rows.is_empty() && load_error.is_none() %}
{% if is_en %}No models yet{% else %}尚未添加模型{% endif %}
{% endif %} {% if !rows.is_empty() %}
{% for row in rows %}
{{ row.name }}{{ row.provider }} · {{ row.interface_count }} {% if is_en %}interface(s){% else %}个接口{% endif %} · {{ row.context_length }} {% if row.enabled %}{% if is_en %}Enabled{% else %}已启用{% endif %}{% else %}{% if is_en %}Disabled{% else %}已停用{% endif %}{% endif %} {% if is_en %}Edit{% else %}编辑{% endif %}
{% if is_en %}{% endif %}
{% if is_en %}OpenAI-compatible interface{% else %}OpenAI 兼容接口{% endif %}{% if row.has_openai_interface %}{% if is_en %}Configured{% else %}已配置{% endif %}{% else %}{% if is_en %}Add when needed{% else %}按需添加{% endif %}{% endif %}
{% if is_en %}Anthropic-compatible interface{% else %}Anthropic 兼容接口{% endif %}{% if row.has_anthropic_interface %}{% if is_en %}Configured{% else %}已配置{% endif %}{% else %}{% if is_en %}Add when needed{% else %}按需添加{% endif %}{% endif %}
{% if is_en %}Responses-compatible interface{% else %}Responses 兼容接口{% endif %}{% if row.has_responses_interface %}{% if is_en %}Configured{% else %}已配置{% endif %}{% else %}{% if is_en %}Add when needed{% else %}按需添加{% endif %}{% endif %}
{% if is_en %}{% endif %}
{% endfor %}
{% endif %}
{% endblock %}