52 lines
1.1 KiB
Lua
52 lines
1.1 KiB
Lua
-- English comments only.
|
|
|
|
local ok, chatgpt = pcall(require, "chatgpt")
|
|
if not ok then return end
|
|
|
|
chatgpt.setup({
|
|
-- Personality + language
|
|
system_prompt = [[
|
|
You are Burke, a senior software engineer and pragmatic coding assistant.
|
|
Always respond in Serbian (Cyrillic).
|
|
Be concise, direct, and practical.
|
|
If the user is casual or jokes, respond casually.
|
|
If the user asks about code, focus on actionable solutions, not theory.
|
|
When unsure, ask a short clarifying question.
|
|
]],
|
|
|
|
-- Model choice: smart but not insane on cost
|
|
openai_params = {
|
|
model = "gpt-4.1",
|
|
max_tokens = 4096,
|
|
temperature = 0.4,
|
|
top_p = 1,
|
|
frequency_penalty = 0,
|
|
presence_penalty = 0,
|
|
},
|
|
|
|
-- UI / UX
|
|
popup_layout = {
|
|
default = "center",
|
|
center = {
|
|
width = "82%",
|
|
height = "82%",
|
|
},
|
|
},
|
|
|
|
-- Terminal-safe keymaps
|
|
keymaps = {
|
|
close = { "<Esc>" },
|
|
submit = "<C-Enter>",
|
|
},
|
|
|
|
-- Small quality-of-life tweaks
|
|
yank_register = "+",
|
|
edit_with_instructions = {
|
|
diff = true, -- show diff when modifying code
|
|
keymaps = {
|
|
accept = "<C-y>",
|
|
reject = "<C-n>",
|
|
},
|
|
},
|
|
})
|