OpenRouterClient constructor
OpenRouterClient({})
Creates an OpenRouterClient with the specified configuration.
Implementation
OpenRouterClient({
required this.apiKey,
required this.model,
this.siteUrl,
this.siteName,
this.temperature,
this.maxCompletionTokens,
this.topP,
this.reasoningEffort,
this.stop,
this.onRetry,
http.Client? httpClient,
}) : _httpClient = httpClient ?? http.Client();