Skip to main content

Create a Prompt

Create a Prompt

Request Body — REQUIRED
id uuid — REQUIRED
title string — REQUIRED
models uuid[] — REQUIRED
promptParams object — REQUIRED
messages object[]
role — REQUIRED
content string — REQUIRED
prompt string
temperature number
top_p number
n number
stop
max_tokens number
presence_penalty number
frequency_penalty number
logit_bias
user string
functions object[]
function_call object
parentPromptId uuid — REQUIRED
versionNumber number — REQUIRED
updateMessage string
Responses
201

Default Response

Schema — OPTIONAL
id uuid
title string
models uuid[]
promptParams object
messages object[] — OPTIONAL
role
content string
prompt string — OPTIONAL
temperature number — OPTIONAL
top_p number — OPTIONAL
n number — OPTIONAL
stop — OPTIONAL
max_tokens number — OPTIONAL
presence_penalty number — OPTIONAL
frequency_penalty number — OPTIONAL
logit_bias — OPTIONAL
user string — OPTIONAL
functions object[] — OPTIONAL
function_call object — OPTIONAL
isDeleted boolean
parentPromptId uuid
versionNumber number
updateMessage string — OPTIONAL
createdAt object
updatedAt object