// Copyright (c) Microsoft. All rights reserved.
namespace OpenAIRealtime;
///
/// Configuration for Azure OpenAI 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 DeploymentName { 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.DeploymentName) &&
!string.IsNullOrWhiteSpace(this.Endpoint) &&
!string.IsNullOrWhiteSpace(this.ApiKey);
}