Commit Graph

4 Commits

Author SHA1 Message Date
root 920b0462b5 封装jsonrpc通信机制 2025-07-10 22:26:29 +08:00
root bda9eb1a6b feat: 更通用的 带进度条的 python通信方式 2025-07-10 22:01:59 +08:00
root f9e67bfc3d fix: template 2025-07-10 21:36:40 +08:00
root 04e5990376 refactor: extract common Python execution patterns into reusable shared code
- Create python_executor.rs module with unified Python command execution
- Remove duplicate execute_python_command functions from ai_video.rs and template.rs
- Eliminate 553 lines of duplicate code across both files
- Improve error handling and JSON-RPC message parsing consistency
- Fix template import 'Unknown error' issue by using unified JSON parsing
- Add configurable timeout and encoding settings
- Ensure consistent UTF-8 encoding across all Python executions
2025-07-10 20:45:54 +08:00