feat: change prompt
This commit is contained in:
@@ -391,11 +391,11 @@ local function run_chatgpt_command()
|
||||
end
|
||||
|
||||
local initial_sections = {
|
||||
"### Basic Prompt Instructions:\n",
|
||||
"## Basic Prompt Instructions:\n",
|
||||
conf.initial_prompt .. "\n\n\n",
|
||||
"### User Instructions:\n",
|
||||
"## User Instructions:\n",
|
||||
user_input .. "\n\n\n",
|
||||
"### Context/Data:\n",
|
||||
"## Context/Data:\n",
|
||||
"Project name: " .. (conf.project_name or "") .. "\n",
|
||||
"Project Structure:\n",
|
||||
project_structure,
|
||||
@@ -403,7 +403,7 @@ local function run_chatgpt_command()
|
||||
}
|
||||
|
||||
if conf.enable_debug_commands then
|
||||
table.insert(initial_sections, "\n### Debug Commands Info:\n")
|
||||
table.insert(initial_sections, "\n## Debug Commands Info:\n")
|
||||
table.insert(initial_sections, prompts["debug-commands-info"])
|
||||
end
|
||||
|
||||
@@ -631,11 +631,11 @@ local function run_chatgpt_current_buffer_command()
|
||||
end
|
||||
|
||||
local initial_sections = {
|
||||
"### Basic Prompt Instructions:\n",
|
||||
"## Basic Prompt Instructions:\n",
|
||||
conf.initial_prompt .. "\n\n\n",
|
||||
"### User Instructions:\n",
|
||||
"## User Instructions:\n",
|
||||
user_input .. "\n\n\n",
|
||||
"### Context/Data:\n",
|
||||
"## Context/Data:\n",
|
||||
"Project name: " .. (conf.project_name or "") .. "\n",
|
||||
"Project Structure:\n",
|
||||
project_structure,
|
||||
@@ -643,7 +643,7 @@ local function run_chatgpt_current_buffer_command()
|
||||
}
|
||||
|
||||
if conf.enable_debug_commands then
|
||||
table.insert(initial_sections, "\n### Debug Commands Info:\n")
|
||||
table.insert(initial_sections, "\n## Debug Commands Info:\n")
|
||||
table.insert(initial_sections, prompts["debug-commands-info"])
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user