in src/WebJobs.Extensions.OpenAI/OpenAIClientFactory.cs [85:93]
static void HasOpenAIKey(out bool hasOpenAIKey, out string openAIKey)
{
hasOpenAIKey = false;
openAIKey = Environment.GetEnvironmentVariable("OPENAI_API_KEY");
if (!string.IsNullOrEmpty(openAIKey))
{
hasOpenAIKey = true;
}
}