Skip to content

Commit 84a3968

Browse files
RoseSecurityMichael Rosenfeld
andauthored
fix: use gpt-5-mini as default model (#1568)
Update default model from 'gpt-4.1' to 'gpt-5-mini' across the repo. Modified README, generated docs, provider example, and the main config (luas/CopilotChat/config.lua) so examples and defaults reflect the new model. This ensures the plugin and docs use the newer model by default. Co-authored-by: Michael Rosenfeld <mrosenfe@sheetz.com>
1 parent 2db7b40 commit 84a3968

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ Most users only need to configure a few options:
240240

241241
```lua
242242
{
243-
model = 'gpt-4.1', -- AI model to use
243+
model = 'gpt-5-mini', -- AI model to use
244244
temperature = 0.1, -- Lower = focused, higher = creative
245245
trusted_tools = nil, -- Require approval for all tool calls
246246
window = {
@@ -311,7 +311,7 @@ Types of copilot highlights:
311311
- `CopilotChatResource` - Resource highlight in chat buffer (e.g. `#file`, `#gitdiff`)
312312
- `CopilotChatTool` - Tool call highlight in chat buffer (e.g. `@copilot`)
313313
- `CopilotChatPrompt` - Prompt highlight in chat buffer (e.g. `/Explain`, `/Review`)
314-
- `CopilotChatModel` - Model highlight in chat buffer (e.g. `$gpt-4.1`)
314+
- `CopilotChatModel` - Model highlight in chat buffer (e.g. `$gpt-5-mini`)
315315
- `CopilotChatUri` - URI highlight in chat buffer (e.g. `##https://...`)
316316
- `CopilotChatAnnotation` - Annotation highlight in chat buffer (file headers, tool call headers, tool call body)
317317
- `CopilotChatAnnotationHeader` - Annotation header highlight in chat buffer
@@ -418,7 +418,7 @@ Add custom AI providers:
418418
my_provider = {
419419
get_url = function(opts) return 'https://api.example.com/chat' end,
420420
get_headers = function() return { ['Authorization'] = 'Bearer ' .. api_key } end,
421-
get_models = function() return { { id = 'gpt-4.1', name = 'GPT-4.1 model' } } end,
421+
get_models = function() return { { id = 'gpt-5-mini', name = 'GPT-5 mini model' } } end,
422422
prepare_input = require('CopilotChat.config.providers').copilot.prepare_input,
423423
prepare_output = require('CopilotChat.config.providers').copilot.prepare_output,
424424
}
@@ -554,7 +554,7 @@ require('CopilotChat').load('my_debugging_session')
554554

555555
-- Use custom sticky and model
556556
require('CopilotChat').ask('How can I optimize this?', {
557-
model = 'gpt-4.1',
557+
model = 'gpt-5-mini',
558558
sticky = { '#buffer', '#gitdiff:staged' },
559559
})
560560

doc/CopilotChat.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ Most users only need to configure a few options:
330330

331331
>lua
332332
{
333-
model = 'gpt-4.1', -- AI model to use
333+
model = 'gpt-5-mini', -- AI model to use
334334
temperature = 0.1, -- Lower = focused, higher = creative
335335
trusted_tools = nil, -- Require approval for all tool calls
336336
window = {
@@ -404,7 +404,7 @@ Types of copilot highlights:
404404
- `CopilotChatResource` - Resource highlight in chat buffer (e.g. `#file`, `#gitdiff`)
405405
- `CopilotChatTool` - Tool call highlight in chat buffer (e.g. `@copilot`)
406406
- `CopilotChatPrompt` - Prompt highlight in chat buffer (e.g. `/Explain`, `/Review`)
407-
- `CopilotChatModel` - Model highlight in chat buffer (e.g. `$gpt-4.1`)
407+
- `CopilotChatModel` - Model highlight in chat buffer (e.g. `$gpt-5-mini`)
408408
- `CopilotChatUri` - URI highlight in chat buffer (e.g. `##https://...`)
409409
- `CopilotChatAnnotation` - Annotation highlight in chat buffer (file headers, tool call headers, tool call body)
410410
- `CopilotChatAnnotationHeader` - Annotation header highlight in chat buffer
@@ -516,7 +516,7 @@ Add custom AI providers:
516516
my_provider = {
517517
get_url = function(opts) return 'https://api.example.com/chat' end,
518518
get_headers = function() return { ['Authorization'] = 'Bearer ' .. api_key } end,
519-
get_models = function() return { { id = 'gpt-4.1', name = 'GPT-4.1 model' } } end,
519+
get_models = function() return { { id = 'gpt-5-mini', name = 'GPT-5 mini model' } } end,
520520
prepare_input = require('CopilotChat.config.providers').copilot.prepare_input,
521521
prepare_output = require('CopilotChat.config.providers').copilot.prepare_output,
522522
}
@@ -658,7 +658,7 @@ EXAMPLE USAGE *CopilotChat-example-usage*
658658

659659
-- Use custom sticky and model
660660
require('CopilotChat').ask('How can I optimize this?', {
661-
model = 'gpt-4.1',
661+
model = 'gpt-5-mini',
662662
sticky = { '#buffer', '#gitdiff:staged' },
663663
})
664664

lua/CopilotChat/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ return {
6161

6262
system_prompt = require('CopilotChat.config.prompts').COPILOT_INSTRUCTIONS.system_prompt, -- System prompt to use (can be specified manually in prompt via /).
6363

64-
model = 'gpt-4.1', -- Default model to use, see ':CopilotChatModels' for available models (can be specified manually in prompt via $).
64+
model = 'gpt-5-mini', -- Default model to use, see ':CopilotChatModels' for available models (can be specified manually in prompt via $).
6565
tools = nil, -- Default tool or array of tools (or groups) to share with LLM (can be specified manually in prompt via @).
6666
resources = 'selection', -- Default resources to share with LLM (can be specified manually in prompt via #).
6767
sticky = nil, -- Default sticky prompt or array of sticky prompts to use at start of every new chat (can be specified manually in prompt via >).

0 commit comments

Comments
 (0)