Skip to content

Commit dffe515

Browse files
committed
Update lua/CopilotChat/config/providers.lua
1 parent 80795c0 commit dffe515

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/CopilotChat/config/providers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ end
278278
---@return table
279279
local function prepare_chat_input(inputs, opts)
280280
local is_o1 = vim.startswith(opts.model.id, 'o1')
281-
local is_codex = regex.match_str(regex, opts.model.id) ~= nil
281+
local is_codex = opts.model.id:find('codex') ~= nil
282282

283283
inputs = vim.tbl_map(function(input)
284284
local output = {

0 commit comments

Comments
 (0)