v1

latestOpenAPI 3.0.0raw.githubusercontent.com2025-03-1031412.6 KB

Generator

Predict lines edition based on adding/deleting labels

post/predict/generator

Request body

languagestring

Supported VS Code language-id of the input text

filePathstring

Path of the file

atLinenumber

Line number of the edit

codeWindowstring[]

Several lines of code around the edit location

interLabelsstring[]

Intermediate labels for each line

inlineLabelsstring[]

Inline labels for each line

commitMessagestring

A message precisely describing of the current edit

prevEditType'def&ref' | 'clone' | 'diagnose' | 'normal'

Type of the previous edit

Response

Successful generation

string[] required

Candidates of the edit, representing an entire replacement of the hunk and requires post-processing to determine the difference.