OpenAI

Edit text

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Create a new edit for the provided instruction and input.

Inputs

Champ

Type

Description

instruction [required]

enum

The instruction on what to do with the prompt. Allowed enum values: Improve the text,Simplify the text,Change the tone to formal,Change the tone to informal

inputText

string

Text on which the edit instruction will be applied.

maxTokens

number

The maximum number of tokens to generate in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. Defaults to 256. Learn more about tokens here.

default: 256

randomness

number

The level of randomness, between 0 and 2, to use when generating the summary. This directly affects the temperature. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Defaults to 1.

default: 1

model

enum

The model to use for the generation of the text. Defaults to Davinci Text Edit v1. Learn more about each of the models, and their strengths, here. Allowed enum values: gpt-3.5-turbo,gpt-3.5-turbo-0613,gpt-3.5-turbo-16k,gpt-3.5-turbo-16k-0613

Outputs

Champ

Type

Description

text [required]

string

The text returned after edits are made.