]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] initialize ollama result table 5385/head
authorJens Erat <email@jenserat.de>
Wed, 12 Mar 2025 23:45:36 +0000 (00:45 +0100)
committerJens Erat <email@jenserat.de>
Wed, 12 Mar 2025 23:45:36 +0000 (00:45 +0100)
commitbda1635a4eadeb2ec605c37f6fe1ad511783201e
tree6770056b85a7282af480826a066d7fa2f0c053ea
parentefd17b77423c0809bfee76279ad5149211e98873
[Fix] initialize ollama result table

similar to gpt.lua:704 for the chatgpt code path, the ollama code path needs to initialize the result table. Without, rspamd fails gpt requests with

> lua_http_finish_handler: callback call failed: /usr/share/rspamd/plugins/gpt.lua:740: attempt to index a nil value
src/plugins/lua/gpt.lua