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
4 changes: 2 additions & 2 deletions lua/CopilotChat/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
---@field blend number?

---@class CopilotChat.config.Shared
---@field system_prompt string|fun(source: CopilotChat.source):string|nil
---@field system_prompt nil|string|fun(source: CopilotChat.source):string
---@field model string?
---@field tools string|table<string>|nil
---@field sticky string|table<string>|nil
Expand Down Expand Up @@ -53,7 +53,7 @@ return {

-- Shared config starts here (can be passed to functions at runtime and configured via setup function)

system_prompt = '{COPILOT_INSTRUCTIONS}', -- System prompt to use (can be specified manually in prompt via /).
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 $).
tools = nil, -- Default tool or array of tools (or groups) to share with LLM (can be specified manually in prompt via @).
Expand Down
2 changes: 1 addition & 1 deletion lua/CopilotChat/config/prompts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ If no issues found, confirm the code is well-written and explain why.
system_prompt = '{COPILOT_REVIEW}',
callback = function(response, source)
local diagnostics = {}
for line in response:gmatch('[^\r\n]+') do
for line in response.content:gmatch('[^\r\n]+') do
if line:find('^line=') then
local start_line = nil
local end_line = nil
Expand Down
Loading