From 272c3aa423eb74eff38bd8836acff744b9ea143b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 22 Jul 2024 13:10:02 +0100 Subject: [Minor] Set response_format --- src/plugins/lua/gpt.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/lua') 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', -- cgit v1.2.3