Skip to content

Commit

Permalink
Improve action prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
luozhiya committed May 15, 2024
1 parent 01480bd commit a375c94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/fittencode/prompt_providers/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ function M:execute(ctx)
end
local prompt = ctx.prompt or ((type(key) == 'function' and key(ctx.action_opts) or key) .. lang_suffix)
-- Log.debug('Action Prompt: {}', prompt)
prefix = content .. '\n`' .. 'Dear FittenCode, Please ' .. prompt .. ':\n'
local start_question = '# Question:\n'
local start_answer = '# Answer:\n'
prefix = start_question .. content .. '\n' .. start_answer .. 'Dear FittenCode, Please ' .. prompt .. ':\n'
end
local suffix = ''

Expand Down

0 comments on commit a375c94

Please sign in to comment.