__( 'Image generation is not available via OpenRouter in this plugin.', 'better-payment' ) ]; } protected function chat_endpoint(): string { return 'https://openrouter.ai/api/v1/chat/completions'; } /** * @return array */ protected function auth_headers(): array { return [ 'Authorization' => 'Bearer ' . sanitize_text_field( (string) $this->config['api_key'] ), // Optional attribution headers recommended by OpenRouter. 'HTTP-Referer' => home_url(), 'X-Title' => 'Better Payment', ]; } }