File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
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"
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
1618M .chat_help = [[
1719# 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