feat: change prompt

This commit is contained in:
2025-01-24 02:47:27 +01:00
parent e36ad99dcb
commit 59540981ed
2 changed files with 48 additions and 46 deletions

View File

@@ -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