GET
/
configurations
import honeyhive
from honeyhive.models import operations

s = honeyhive.HoneyHive(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)


res = s.configurations.get_configurations(project='<value>', env=operations.Env.DEV, name='<value>')

if res.configurations is not None:
    # handle response
    pass
[
  {
    "_id": "6638187d505c6812e4044f24",
    "project": "New Project",
    "type": {
      "type": "string",
      "enum": [
        "LLM",
        "pipeline"
      ],
      "description": "Type of the configuration - \"LLM\" or \"pipeline\" - \"LLM\" by default"
    },
    "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": []
      },
      "responseFormat": {
        "type": "text"
      },
      "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 }}"
        }
      ]
    },
    "env": [
      "staging"
    ],
    "tags": [],
    "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

Authorization
string
header
required

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

Query Parameters

project
string
required

Project name for configuration like Example Project

env
enum<string>

Environment - "dev", "staging" or "prod"

Available options:
dev,
staging,
prod
name
string

The name of the configuration like v0

Response

200 - application/json

An array of configurations

The response is of type object[].