Skip to content

Commit 6f045fa

Browse files
authored
Update dispatcher.lua
Somehow GPT-5 does not supports temperature and max token parameter in api
1 parent b32327f commit 6f045fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/gp/dispatcher.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ D.prepare_payload = function(messages, model, provider)
127127
},
128128
},
129129
generationConfig = {
130-
temperature = math.max(0, math.min(2, model.temperature or 1)),
131-
maxOutputTokens = model.max_tokens or 8192,
130+
--temperature = math.max(0, math.min(2, model.temperature or 1)),
131+
--maxOutputTokens = model.max_tokens or 8192,
132132
topP = math.max(0, math.min(1, model.top_p or 1)),
133133
topK = model.top_k or 100,
134134
},

0 commit comments

Comments
 (0)