// Copyright (c) Microsoft. All rights reserved.
namespace FunctionInvocationApproval.Options;
///
/// Configuration for Azure OpenAI chat completion service.
///
public class AzureOpenAIOptions
{
public const string SectionName = "AzureOpenAI";
///
/// Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource
///
public string ChatDeploymentName { get; set; }
///
/// Azure OpenAI deployment URL, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart
///
public string Endpoint { get; set; }
///
/// Azure OpenAI API key, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart
///
public string ApiKey { get; set; }
public bool IsValid =>
!string.IsNullOrWhiteSpace(this.ChatDeploymentName) &&
!string.IsNullOrWhiteSpace(this.Endpoint) &&
!string.IsNullOrWhiteSpace(this.ApiKey);
}