-
👋🏼, I was previously using the prompt_library = {
['Condense text'] = M.condense_text = {
condition = function(context)
return context.is_visual
end,
opts = { auto_submit = true },
strategy = 'chat',
prompts = {
{
role = 'system',
content = format_lines({
'Your task is to condense the text.',
'Strive for simple, clear language, avoiding complexity or ambiguity.',
'Start your response with the condensed text in a code block.',
'End your response with a concise list of the changes made.',
}),
},
{
role = 'user',
content = function(context)
return format_lines({
'I have the following text in `%s`:',
}, path.get_basename(buffer.get_path(context.bufnr)))
end,
},
},
}
} What am I missing? 🤔 |
Beta Was this translation helpful? Give feedback.
Answered by
sQVe
Sep 30, 2024
Replies: 1 comment 3 replies
-
I may have missed this when I made the changes so I'll add this as an issue. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@olimorris I found the issue. See #277 for a fix.
The plugin is using a
condition
, but since it's a static action, it is not handled the same way as theprompt_library
.