diff options
Diffstat (limited to 'internal/hexaiaction/prompts.go')
| -rw-r--r-- | internal/hexaiaction/prompts.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/hexaiaction/prompts.go b/internal/hexaiaction/prompts.go index 03a9441..4b2d8be 100644 --- a/internal/hexaiaction/prompts.go +++ b/internal/hexaiaction/prompts.go @@ -82,6 +82,13 @@ func runSimplify(ctx context.Context, cfg actionConfig, client chatDoer, selecti return runOnce(ctx, client, sys, user, reqOptsFrom(cfg)) } +func runFixTypos(ctx context.Context, cfg actionConfig, client chatDoer, selection string) (string, error) { + prompts := cfg.PromptSection() + sys := prompts.PromptCodeActionFixTyposSystem + user := Render(prompts.PromptCodeActionFixTyposUser, map[string]string{"selection": selection}) + return runOnce(ctx, client, sys, user, reqOptsFrom(cfg)) +} + func runGoTest(ctx context.Context, cfg actionConfig, client chatDoer, funcCode string) (string, error) { prompts := cfg.PromptSection() sys := prompts.PromptCodeActionGoTestSystem |
