Hosts establish connectivity for AI models and other external endpoints. The project manifest allows you to define hosts for secure access from within a function.

hypermode.json
{
  "hosts": [
    {
      "name": "openai",
      "endpoint": "https://api.openai.com/v1",
      "authHeader": "Authorization"
    }
  ]
}

Properties

name
string
required

Internal name of your host. Used for indicating the host of a model or for a connection.

endpoint
string
required

URL and base path for connections to the host.