OpenAI::ApplyPatchCreateFileOperationParam
Inherits JSON::Serializable < Reference < Object
Instruction for creating a new file via the apply_patch tool.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : ApplyPatchCreateFileOperationParamType = ApplyPatchCreateFileOperationParamType::CreateFile, path : String = "", diff : String = "")
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
type_value=(type_value : ApplyPatchCreateFileOperationParamType)
The operation type. Always create_file.
validate!
Source