Skip to content
Merged
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
3 changes: 2 additions & 1 deletion lua/CopilotChat/config/providers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ end
---@return table
local function prepare_chat_input(inputs, opts)
local is_o1 = vim.startswith(opts.model.id, 'o1')
local is_codex = opts.model.id:find('codex') ~= nil

inputs = vim.tbl_map(function(input)
local output = {
Expand Down Expand Up @@ -324,7 +325,7 @@ local function prepare_chat_input(inputs, opts)
end, opts.tools)
end

if not is_o1 then
if not is_o1 and not is_codex then
out.n = 1
out.top_p = 1
out.temperature = opts.temperature
Expand Down