// Copyright (c) Microsoft. All rights reserved. namespace FunctionInvocationApproval.Options; /// /// Configuration for OpenAI chat completion service. /// public class OpenAIOptions { public const string SectionName = "OpenAI"; /// /// OpenAI model ID, see https://platform.openai.com/docs/models. /// public string ChatModelId { get; set; } /// /// OpenAI API key, see https://platform.openai.com/account/api-keys /// public string ApiKey { get; set; } public bool IsValid => !string.IsNullOrWhiteSpace(this.ChatModelId) && !string.IsNullOrWhiteSpace(this.ApiKey); }