edit prediction: Try to expand context to parent treesitter region (#24186)
Also send the `speculated_output` (which is just the editable region) to the llm backend Closes #ISSUE Release Notes: - N/A --------- Co-authored-by: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
bce9a9a6f4
commit
cae712e740
3 changed files with 293 additions and 203 deletions
|
@ -39,6 +39,7 @@ pub struct PredictEditsParams {
|
|||
pub outline: Option<String>,
|
||||
pub input_events: String,
|
||||
pub input_excerpt: String,
|
||||
pub speculated_output: String,
|
||||
/// Whether the user provided consent for sampling this interaction.
|
||||
#[serde(default)]
|
||||
pub data_collection_permission: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue