File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -143,11 +143,11 @@ local config = {
143
143
},
144
144
{
145
145
provider = " googleai" ,
146
- name = " ChatGemini" ,
146
+ name = " ChatGemini-2-5-Pro " ,
147
147
chat = true ,
148
148
command = false ,
149
149
-- 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 },
151
151
-- system prompt (use this to specify the persona/role of the AI)
152
152
system_prompt = require (" gp.defaults" ).chat_system_prompt ,
153
153
},
@@ -253,11 +253,11 @@ local config = {
253
253
},
254
254
{
255
255
provider = " googleai" ,
256
- name = " CodeGemini" ,
256
+ name = " CodeGemini-2-5-Pro " ,
257
257
chat = false ,
258
258
command = true ,
259
259
-- 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 },
261
261
system_prompt = require (" gp.defaults" ).code_system_prompt ,
262
262
},
263
263
{
Original file line number Diff line number Diff line change @@ -9,9 +9,11 @@ M.chat_system_prompt = "You are a general AI assistant.\n\n"
9
9
.. " - Don't elide any code from your output if the answer requires coding.\n "
10
10
.. " - Take a deep breath; You've got this!\n "
11
11
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 ```."
15
17
16
18
M .chat_help = [[
17
19
# Write your queries after {{user_prefix}}. Use `{{respond_shortcut}}` or :{{cmd_prefix}}ChatRespond to generate a response.
You can’t perform that action at this time.
0 commit comments