Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 01 Jun 04:50

v2.0.0 — 架构重构

🏗 模块解耦

  • gguf_reader.py (205行): GGUF 二进制解析器独立模块 — read_metadata(), classify_file(), is_embedding_model(), metadata_display()
  • config_store.py (87行): 原子 JSON 配置存储 — save_atomic(), load_json(), params_to_dict(), params_from_dict()

🔧 代码优化

  • _sync_instance_ui(): 封装 _refresh_instance_tree + _sync_bottom_bar + _auto_save 三重调用,4 处重复 → 一行
  • _kill_instance_process() + _clear_instance_run_state(): 统一进程查杀逻辑,消除 stop_server_stop_all_instances 中 ~60 行重复
  • 主文件精简: 3,829 → 3,635 行(-194 行),131 个方法
  • 无黑框启动: 使用 --windowed 模式编译

🐛 修复

  • 恢复被 GGUF 提取时误删的 create_entry() 方法
  • 移除死模块 download_manager.py(API 不匹配)
  • 修复 config_store.save_atomic 未集成问题

📦 构建

dist/llama-server-gui.exe — Windows 单文件 ~31MB,双击启动无黑框

Full Changelog: v1.9.1...v2.0.0