POST
/
prompts
Authorization
Body
curl --request POST \
  --url https://api.honeyhive.ai/prompts \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "chat": "<string>",
  "few_shot_examples": [
    {}
  ],
  "hyperparameters": {},
  "is_deployed": true,
  "model": "<string>",
  "provider": "<string>",
  "task": "<string>",
  "text": "<string>",
  "version": "<string>"
}'
{
  "created_at": "2023-11-07T05:31:56Z",
  "few_shot_examples": [
    {}
  ],
  "hyperparameters": {},
  "input_variables": [
    "<string>"
  ],
  "is_deployed": true,
  "model": "<string>",
  "name": "<string>",
  "task": "<string>",
  "text": "<string>",
  "updated_at": "2023-11-07T05:31:56Z",
  "version": "<string>"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
chat
string

The text of the chat prompt

few_shot_examples
object[]

The few shot examples for the prompt

hyperparameters
object

The hyperparameters for the prompt

is_deployed
boolean

Flag indicating if the prompt is deployed

model
string

The model to be used for the prompt

provider
string

The model provider

task
string

The task for which the prompt is being created

text
string

The text of the prompt

version
string

The version of the prompt

Response

200 - application/json
created_at
string

The timestamp of when the prompt was created

few_shot_examples
object[] | null

The few shot examples for the prompt

hyperparameters
object

The hyperparameters for the prompt

input_variables
string[]

The input variables to feed into the prompt

is_deployed
boolean

Flag indicating if the prompt is deployed

model
string

The model to be used for the prompt

name
string

The unique name of the prompt

task
string

The task for which the prompt is being created

text
string

The text of the prompt

updated_at
string

The timestamp of when the prompt was last updated

version
string

The version of the prompt