Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Most users only need to configure a few options:

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

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

Expand Down
8 changes: 4 additions & 4 deletions doc/CopilotChat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ Most users only need to configure a few options:

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

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

Expand Down
2 changes: 1 addition & 1 deletion lua/CopilotChat/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ return {

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

model = 'gpt-4.1', -- Default model to use, see ':CopilotChatModels' for available models (can be specified manually in prompt via $).
model = 'gpt-5-mini', -- Default model to use, see ':CopilotChatModels' for available models (can be specified manually in prompt via $).
tools = nil, -- Default tool or array of tools (or groups) to share with LLM (can be specified manually in prompt via @).
resources = 'selection', -- Default resources to share with LLM (can be specified manually in prompt via #).
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 >).
Expand Down