Closed RobotSail closed 2 years ago
At the moment, there are three (possibly four) scenarios that could happen:
edit
mode, which would use the /edits
endpointgenerate
mode which hits the /completions
endpointedit
+ generate
mode. This could be accomplished by chaining together edit
and generate
, but in which order?@guymguym What do you think of the above?
@RobotSail I think we already saw that the edit API is capable of generating new files too. Is there anything to be done here still or should we close?
@guymguym I was thinking about that during our meeting with Ryan yesterday. From what I've seen so far, edits
still struggles with generating without specific wording, whereas completions
does it by default.
We can probably create a new command generate
or add a --generate
option to patch
which assumes that the user wants to generate an entirely new file. The completions
endpoint would work much better with this, and if we're using filesets then we would already have an idea of where the generated file should be saved to.
Related to #16, the Codex
/edits
endpoint will only edit files in-place based on the provided input, but it does not provide new additions in terms of new files.For example, the following prompt + input works as expected:
files
:input
:Produces the output:
However, specifying the following only produces changes to
@kustomization
and doesn't generate the newly requested resource:files
:input
Produces:
Parameters used in completion: