By requiring an environment variable, you're limiting the end users configuration options and potentially forcing them to rename other google API keys that they don't want to conflict.
Easiest solution would be to have a knowledge.google.setApiKey(apiKey) function that set the API key, and fallback to GOOGLE_API_KEY otherwise.
If you agree, I'll be happy to submit the PR!