From: hunter-nl Date: Thu, 14 Aug 2025 14:51:24 +0000 (+0200) Subject: Update gpt.lua to fix spaces on empty lines X-Git-Tag: 3.13.0~29^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d795beb0241045265f98f272e1e1c4dd40126d51;p=thirdparty%2Frspamd.git Update gpt.lua to fix spaces on empty lines To fix luacheck "line contains only whitespace" --- diff --git a/src/plugins/lua/gpt.lua b/src/plugins/lua/gpt.lua index 0738bb5ab8..8457fbdf75 100644 --- a/src/plugins/lua/gpt.lua +++ b/src/plugins/lua/gpt.lua @@ -729,7 +729,7 @@ local function openai_check(task, content, sel_part) end return true end - + local body_base = { messages = { { @@ -754,7 +754,7 @@ local function openai_check(task, content, sel_part) } } } - + if type(settings.model) == 'string' then settings.model = { settings.model } end @@ -767,7 +767,7 @@ local function openai_check(task, content, sel_part) } -- Fresh body for each model local body = table_deep_copy(body_base) - + -- Set the correct token limit field local token_field = get_max_tokens_field(model) body[token_field] = settings.max_tokens