Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lua/gp/dispatcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,14 @@ D.prepare_payload = function(messages, model, provider)
output.top_p = nil
end

if model.model == "gpt-5" or model.model == "gpt-5-mini" then
if model.model == "gpt-5" or model.model == "gpt-5-mini" or model.model == "gpt-5-nano" then
-- remove max_tokens, top_p, temperature for gpt-5 models (duh)
output.max_tokens = nil
output.temperature = nil
output.top_p = nil

output.reasoning_effort = model.reasoning_effort or "medium"
output.verbosity = model.verbosity or "medium"
end

return output
Expand Down