feat: make prompt better to include real project name
This commit is contained in:
@@ -172,7 +172,10 @@ local function build_prompt(user_input, dirs, conf)
|
||||
env_lines[#env_lines+1] = "</environment_details>"
|
||||
table.insert(final_sections, table.concat(env_lines, "\n"))
|
||||
|
||||
return table.concat(final_sections, "\n\n")
|
||||
local final_prompt = table.concat(final_sections, "\n\n")
|
||||
-- Replace placeholder "%PROJECT_NAME%" with the actual project name from configuration
|
||||
final_prompt = final_prompt:gsub("%%PROJECT_NAME%%", conf.project_name)
|
||||
return final_prompt
|
||||
end
|
||||
|
||||
local function handle_step_by_step_if_needed(prompt, conf)
|
||||
|
||||
Reference in New Issue
Block a user