Package: @effect/ai-openrouter
Module: OpenRouterClient
Configuration for creating an OpenRouter client.
Signature
type Options = {
readonly apiKey?: Redacted.Redacted<string> | undefined
readonly apiUrl?: string | undefined
/**
* Optional URL of your site for rankings on `openrouter.ai`.
*/
readonly siteReferrer?: string | undefined
/**
* Optional title of your site for rankings on `openrouter.ai`.
*/
readonly siteTitle?: string | undefined
/**
* Optional transformer for the underlying HTTP client.
*
* **When to use**
*
* Use to add middleware, logging, or custom request/response handling.
*/
readonly transformClient?: ((client: HttpClient.HttpClient) => HttpClient.HttpClient) | undefined
}
Since v4.0.0