- Knowledge
- Community
- GETRetrieve a list of configurations
- POSTCreate a new configuration
- PUTUpdate an existing configuration
- DELDelete a configuration
- GETRetrieve a list of datapoints
- PUTUpdate a specific datapoint
- POSTCreate a new datapoint
- GETRetrieve a specific datapoint
- DELDelete a specific datapoint
Configurations
Datapoints
Create a new configuration
curl --request POST \
--url https://api.honeyhive.ai/configurations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"project": "660d7ba7995cacccce4d299e",
"name": "function-v0",
"provider": "openai",
"parameters": {
"call_type": "chat",
"model": "gpt-4-turbo-preview",
"hyperparameters": {
"temperature": 0,
"max_tokens": 1000,
"top_p": 1,
"top_k": -1,
"frequency_penalty": 0,
"presence_penalty": 0,
"stop_sequences": []
},
"selectedFunctions": [
{
"id": "64e3ba90e81f9b3a3808c27f",
"name": "get_google_information",
"description": "Get information from Google when you do not have that information in your context",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query asked by the user"
}
},
"required": [
"query"
]
}
}
],
"functionCallParams": "auto",
"forceFunction": {},
"template": [
{
"role": "system",
"content": "You are a web search assistant."
},
{
"role": "user",
"content": "{{ query }}"
}
]
},
"tags": [],
"env": [
"staging"
],
"user_properties": {
"user_id": "google-oauth2|108897808434934946583",
"user_name": "Dhruv Singh",
"user_picture": "https://lh3.googleusercontent.com/a/ACg8ocLyQilNtK9RIv4M0p-0FBSbxljBP0p5JabnStku1AQKtFSK=s96-c",
"user_email": "dhruv@honeyhive.ai"
}
}'
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
ID of the project to which this configuration belongs
Name of the configuration
Name of the provider - "openai", "anthropic", etc.
Type of API calling - "chat" or "completion"
chat
, completion
Model unique name
Model-specific hyperparameters
Response format for the model with the key "type" and value "text" or "json_object"
List of functions to be called by the model, refer to OpenAI schema for more details
UUID of the function
Name of the function
Description of the function
Parameters for the function
Function calling mode - "none", "auto" or "force"
none
, auto
, force
Force function-specific parameters
List of environments where the configuration is active
dev
, staging
, prod
Details of user who created the configuration
curl --request POST \
--url https://api.honeyhive.ai/configurations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"project": "660d7ba7995cacccce4d299e",
"name": "function-v0",
"provider": "openai",
"parameters": {
"call_type": "chat",
"model": "gpt-4-turbo-preview",
"hyperparameters": {
"temperature": 0,
"max_tokens": 1000,
"top_p": 1,
"top_k": -1,
"frequency_penalty": 0,
"presence_penalty": 0,
"stop_sequences": []
},
"selectedFunctions": [
{
"id": "64e3ba90e81f9b3a3808c27f",
"name": "get_google_information",
"description": "Get information from Google when you do not have that information in your context",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The query asked by the user"
}
},
"required": [
"query"
]
}
}
],
"functionCallParams": "auto",
"forceFunction": {},
"template": [
{
"role": "system",
"content": "You are a web search assistant."
},
{
"role": "user",
"content": "{{ query }}"
}
]
},
"tags": [],
"env": [
"staging"
],
"user_properties": {
"user_id": "google-oauth2|108897808434934946583",
"user_name": "Dhruv Singh",
"user_picture": "https://lh3.googleusercontent.com/a/ACg8ocLyQilNtK9RIv4M0p-0FBSbxljBP0p5JabnStku1AQKtFSK=s96-c",
"user_email": "dhruv@honeyhive.ai"
}
}'