class

OpenAI::ApplyPatchUpdateFileOperation

Inherits JSON::Serializable < Reference < Object

Instruction describing how to update a file via the apply_patch tool.

Constructors

new(type_value : ApplyPatchUpdateFileOperationType = ApplyPatchUpdateFileOperationType::UpdateFile, path : String = "", diff : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

diff

Diff to apply.

Source
diff=(diff : String)

Diff to apply.

Source
path

Path of the file to update.

Source
path=(path : String)

Path of the file to update.

Source
type_value

Update an existing file with the provided diff.

Source
type_value=(type_value : ApplyPatchUpdateFileOperationType)

Update an existing file with the provided diff.

Source