mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
Unify the duplicated preprocessing logic between Electron (wrapWithPreprocessing) and Server (applyPreprocessing) into a single applyPreprocessingPipeline() function in @openchatlab/node-runtime. Both platforms now delegate to the same implementation, eliminating ~50 lines of redundant code and fixing a redundant token counting bug in the Server version.