mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
c9d4ee2a60
* refactor(agent): move user identity headers to system prompt and sanitize input - Relocate user-context headers from User Prompt to System Prompt for better instruction adherence. - Implement soft-sanitization to strip header-like patterns from user input to prevent prompt injection. - Update resolver logic in Go to support the new prompt structure. * refactor(agent): move user identity headers to system prompt and sanitize input - Relocate user-context headers from User Prompt to System Prompt for better instruction adherence. - Implement soft-sanitization to strip header-like patterns from user input to prevent prompt injection. - Update resolver logic in Go to support the new prompt structure. * chore: remove same process in go side --------- Co-authored-by: Acbox <acbox0328@gmail.com>