]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Refactor llm_search_context to use lua_cache module
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 5 Nov 2025 14:25:19 +0000 (14:25 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 5 Nov 2025 14:25:19 +0000 (14:25 +0000)
commit97082fbe01fd43f842a8a3a071d81007e44d6bd4
tree416be071c23effd2916b9872d8d1370149b02b5e
parent71445791c07bc83e01340459f60a4dde59887b2f
[Fix] Refactor llm_search_context to use lua_cache module

- Replace manual Redis operations with lua_cache API for better consistency
- Use messagepack serialization and automatic key hashing
- Fix Leta Mullvad API URL to /search/__data.json endpoint
- Add search_engine parameter support
- Remove redundant 'or DEFAULTS.xxx' patterns (opts already has defaults merged)
- Add proper debug_module propagation throughout call chain
- Improve JSON parsing to handle Leta Mullvad's nested pointer structure
conf/modules.d/gpt.conf
lualib/llm_search_context.lua
src/plugins/lua/gpt.lua