diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-22 13:10:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-07-22 13:10:02 +0100 |
commit | 272c3aa423eb74eff38bd8836acff744b9ea143b (patch) | |
tree | a1cddd3f068456833af61c53e9550452a1d8fffa /src/plugins/lua | |
parent | d019b0dfc11ca01c19a2889db0605ff1a776562b (diff) | |
download | rspamd-272c3aa423eb74eff38bd8836acff744b9ea143b.tar.gz rspamd-272c3aa423eb74eff38bd8836acff744b9ea143b.zip |
[Minor] Set response_format
Diffstat (limited to 'src/plugins/lua')
-rw-r--r-- | src/plugins/lua/gpt.lua | 1 |
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', |