Interface: OpenRouterHeaders
@providerprotocol/ai / openrouter / OpenRouterHeaders
Interface: OpenRouterHeaders
Section titled “Interface: OpenRouterHeaders”Defined in: src/providers/openrouter/types.ts:1444
OpenRouter-specific HTTP headers for API requests.
Example
Section titled “Example”const headers: OpenRouterHeaders = { 'HTTP-Referer': 'https://myapp.example.com', 'X-Title': 'My Application',};Indexable
Section titled “Indexable”[key: string]: string | undefined
Properties
Section titled “Properties”HTTP-Referer?
Section titled “HTTP-Referer?”
optionalHTTP-Referer:string
Defined in: src/providers/openrouter/types.ts:1446
Application URL for analytics and leaderboard tracking.
X-Title?
Section titled “X-Title?”
optionalX-Title:string
Defined in: src/providers/openrouter/types.ts:1448
Application name for analytics display.