SIGN IN SIGN UP

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

0 0 0 Python

refactor(copilot): hoist _sanitize helper and use it in pre_compact_hook

Move _sanitize() above all hooks so it can be reused. Refactor
pre_compact_hook to use _sanitize(max_len=500) instead of inline
.replace() calls for consistency across all hooks.
Z
Zamil Majdy committed
20f6a77a4feb76d664384112accac904998a35db
Parent: 2e7cf26