Helicone Headers
Introduction
Leverage the power of headers in your proxy request with Helicone to unlock advanced features and capabilities.
Utilizing Headers
curl https://gateway.hconeai.com/v1/completions \
-H 'Content-Type: application/json' \
-H 'Helicone-Auth: Bearer HELICONE_API_KEY' \
-H 'Helicone-<HEADER>: <VALUE>'
-d ...
Supported Headers
Header Name | Type | Description | Example |
---|---|---|---|
Helicone-Target-URL | string (url) | The URL to proxy the request to when using gateway.hconeai.com | https://api.openai.com/v1/engines/davinci/completions |
Helicone-OpenAI-Api-Base | string (url) | The URL to proxy the request to when using oai.hconeai.com | https://[YOUR_AZURE_DOMAIN].openai.azure.com |
Helicone-Request-Id | string (uuid) | The ID of the request | 123e4567-e89b-12d3-a456-426614174000 |
Helicone-Omit-Response | boolean | Whether to exclude the response from the request | true |
Helicone-Omit-Request | boolean | Whether to exclude the request from the response | true |
Feature Flags
Header Name | Type | Description | Example |
---|---|---|---|
Helicone-Stream-Force-Format | boolean | Enforce proper stream formatting for libraries that do not inherently support it, such as Ruby. | true |