Create a prompt
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The text of the chat prompt
The few shot examples for the prompt
The hyperparameters for the prompt
Flag indicating if the prompt is deployed
The model to be used for the prompt
The model provider
The task for which the prompt is being created
The text of the prompt
The version of the prompt
Response
The timestamp of when the prompt was created
The few shot examples for the prompt
The hyperparameters for the prompt
The input variables to feed into the prompt
Flag indicating if the prompt is deployed
The model to be used for the prompt
The unique name of the prompt
The task for which the prompt is being created
The text of the prompt
The timestamp of when the prompt was last updated
The version of the prompt
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>"
}