Skip to content

页面与模板

模板渲染

页面使用 Jinja2 在服务端渲染。模板位于 templates/ 目录中。

页面列表

路径模板描述
/index.html带有 Live2D/VRM 渲染的主聊天界面
/chara_managerchara_manager.html角色性格和设置编辑器
/api_keyapi_key_settings.htmlAPI 密钥配置面板
/model_managermodel_manager.html模型浏览和管理
/live2d_parameter_editorlive2d_parameter_editor.htmlLive2D 模型参数微调
/live2d_emotion_managerlive2d_emotion_manager.htmlLive2D 情感映射
/vrm_emotion_managervrm_emotion_manager.htmlVRM 情感映射
/voice_clonevoice_clone.html语音克隆界面
/memory_browsermemory_browser.html记忆浏览和编辑
/steam_workshop_managersteam_workshop_manager.htmlSteam 创意工坊管理

深色模式

深色模式由 static/theme-manager.js 管理:

  • 通过 UI 按钮切换
  • 保存在 localStorage
  • CSS 变量定义在 static/css/dark-mode.css
  • 遵循系统偏好(prefers-color-scheme

静态文件服务

挂载点目录内容
/staticstatic/JS、CSS、图片、语言文件
/user_live2d用户文档用户导入的 Live2D 模型
/user_vrm用户文档用户导入的 VRM 模型
/workshopSteam 创意工坊工坊订阅的模型

基于 MIT 许可发布。