zed/assets/prompts
Nathan Sobo a515442a36
Rely on model to determine indentation level and always rewrite the full line (#16145)
This PR simplifies our approach to indentation in the inline assistant
in hopes of improving our experience for Python. We tell the model to
generate the correct indentation in the prompt, and always start
generating at the start of the line. This may fall down for less capable
models, but I want to get a solid experience on the best models and then
figure the rest out later.

Also: We now prefer `./assets/prompts` as an overrides directory when
stdout is a PTY, so you can do `cargo run` and then iterate prompts for
the current run inside the current working copy.

cc @trishume @dsp-ant 

Release Notes:

- Zed now allows the model to control indentation when performing inline
transformation. We're hoping this improves the indentation experience in
Python and other indentation-sensitive languages, but it does require
more from the model.

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
2024-08-12 22:41:24 -06:00
..
content_prompt.hbs Rely on model to determine indentation level and always rewrite the full line (#16145) 2024-08-12 22:41:24 -06:00
edit_workflow.hbs Allow /workflow and step resolution prompts to be overridden (#15892) 2024-08-06 21:47:42 -06:00
step_resolution.hbs Open workflow step editors as preview tabs (#15928) 2024-08-07 19:33:58 -06:00
terminal_assistant_prompt.hbs Allow prompt templates to be overridden in the zed configuration directory (#15887) 2024-08-06 19:30:48 -06:00