aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-07-22 13:10:02 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-07-22 13:10:02 +0100
commit272c3aa423eb74eff38bd8836acff744b9ea143b (patch)
treea1cddd3f068456833af61c53e9550452a1d8fffa
parentd019b0dfc11ca01c19a2889db0605ff1a776562b (diff)
downloadrspamd-272c3aa423eb74eff38bd8836acff744b9ea143b.tar.gz
rspamd-272c3aa423eb74eff38bd8836acff744b9ea143b.zip
[Minor] Set response_format
-rw-r--r--src/plugins/lua/gpt.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/lua/gpt.lua b/src/plugins/lua/gpt.lua
index 046fe5dd7..7b582e55d 100644
--- a/src/plugins/lua/gpt.lua
+++ b/src/plugins/lua/gpt.lua
@@ -273,6 +273,7 @@ local function openai_gpt_check(task)
model = settings.model,
max_tokens = settings.max_tokens,
temperature = settings.temperature,
+ response_format = { type = "json_object" },
messages = {
{
role = 'system',