OpenRouterLLMClient

constructor(apiKey: String, settings: OpenRouterClientSettings = OpenRouterClientSettings(), baseClient: HttpClient = HttpClient())(source)

Parameters

apiKey

The API key for the OpenRouter API

settings

The base URL and timeouts for the OpenRouter API, defaults to "https://openrouter.ai" and 900s