Create Edit

Go to Product
This Node Is Deprecated — This node is kept for backwards-compatibility, but the usage in new workflows is no longer recommended. The documentation below might contain more information.

Creates a new edit for the provided input, instruction, and parameters.

Options

Body

Request body which must comply to the following JSON Schema:

{
  "required" : [ "instruction", "model" ],
  "type" : "object",
  "properties" : {
    "instruction" : {
      "type" : "string",
      "description" : "The instruction that tells the model how to edit the prompt.",
      "example" : "Fix the spelling mistakes."
    },
    "model" : {
      "description" : "ID of the model to use. You can use the `text-davinci-edit-001` or `code-davinci-edit-001` model with this endpoint.",
      "example" : "text-davinci-edit-001",
      "anyOf" : [ {
        "type" : "string"
      }, {
        "type" : "string",
        "enum" : [ "text-davinci-edit-001", "code-davinci-edit-001" ]
      } ],
      "x-oaiTypeLabel" : "string"
    },
    "input" : {
      "type" : "string",
      "description" : "The input text to use as a starting point for the edit.",
      "nullable" : true,
      "example" : "What day of the wek is it?",
      "default" : ""
    },
    "n" : {
      "maximum" : 20,
      "minimum" : 1,
      "type" : "integer",
      "description" : "How many edits to generate for the input and instruction.",
      "nullable" : true,
      "example" : 1,
      "default" : 1
    },
    "temperature" : {
      "maximum" : 2,
      "minimum" : 0,
      "type" : "number",
      "description" : "completions_temperature_description",
      "nullable" : true,
      "example" : 1,
      "default" : 1
    },
    "top_p" : {
      "maximum" : 1,
      "minimum" : 0,
      "type" : "number",
      "description" : "completions_top_p_description",
      "nullable" : true,
      "example" : 1,
      "default" : 1
    }
  }
}
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Raw Response: Returns the raw response in a single row with the following columns:

  • body: Response body
  • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.