From ceb8ba8dd824a56ae94aede225e28cbd5d5cc44f Mon Sep 17 00:00:00 2001 From: zahid0 Date: Tue, 18 Feb 2025 12:59:27 +0530 Subject: [PATCH] add support for reasoning_format in model --- lua/gp/dispatcher.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/gp/dispatcher.lua b/lua/gp/dispatcher.lua index 26fc76a1..5dba4101 100644 --- a/lua/gp/dispatcher.lua +++ b/lua/gp/dispatcher.lua @@ -172,6 +172,7 @@ D.prepare_payload = function(messages, model, provider) max_tokens = model.max_tokens or 4096, temperature = math.max(0, math.min(2, model.temperature or 1)), top_p = math.max(0, math.min(1, model.top_p or 1)), + reasoning_format = model.reasoning_format, } if provider == "openai" and model.model:sub(1, 2) == "o1" then