Skip to content

Commit c4f224f

Browse files
committed
chore: backup progress
1 parent 1be358d commit c4f224f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

lua/gp/config.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ local config = {
143143
},
144144
{
145145
provider = "googleai",
146-
name = "ChatGemini",
146+
name = "ChatGemini-2-5-Pro",
147147
chat = true,
148148
command = false,
149149
-- string with model name or table with model name and parameters
150-
model = { model = "gemini-pro", temperature = 1.1, top_p = 1 },
150+
model = { model = "gemini-2.5-pro-exp-03-25", temperature = 1.1, top_p = 1 },
151151
-- system prompt (use this to specify the persona/role of the AI)
152152
system_prompt = require("gp.defaults").chat_system_prompt,
153153
},
@@ -253,11 +253,11 @@ local config = {
253253
},
254254
{
255255
provider = "googleai",
256-
name = "CodeGemini",
256+
name = "CodeGemini-2-5-Pro",
257257
chat = false,
258258
command = true,
259259
-- string with model name or table with model name and parameters
260-
model = { model = "gemini-pro", temperature = 0.8, top_p = 1 },
260+
model = { model = "gemini-2.5-pro-exp-03-25", temperature = 0.8, top_p = 1 },
261261
system_prompt = require("gp.defaults").code_system_prompt,
262262
},
263263
{

lua/gp/defaults.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ M.chat_system_prompt = "You are a general AI assistant.\n\n"
99
.. "- Don't elide any code from your output if the answer requires coding.\n"
1010
.. "- Take a deep breath; You've got this!\n"
1111

12-
M.code_system_prompt = "You are an AI working as a code editor.\n\n"
13-
.. "Please AVOID COMMENTARY OUTSIDE OF THE SNIPPET RESPONSE.\n"
14-
.. "START AND END YOUR ANSWER WITH:\n\n```"
12+
M.code_system_prompt = "You are an AI code generation engine.\n\n"
13+
.. "Your *ONLY* output MUST be the raw code snippet requested.\n"
14+
.. "DO NOT include any introductory sentences, explanations, or conclusions.\n"
15+
.. "DO NOT write anything before the opening ``` or after the closing ```.\n"
16+
.. "Your entire response MUST start *immediately* with ``` and end *immediately* with ```."
1517

1618
M.chat_help = [[
1719
# Write your queries after {{user_prefix}}. Use `{{respond_shortcut}}` or :{{cmd_prefix}}ChatRespond to generate a response.

0 commit comments

Comments
 (0)