Files
microsoft--semantic-kernel/dotnet/samples/Demos/AgentFrameworkWithAspire/ChatWithAgent.Configuration/AzureOpenAIEmbeddingsConfig.cs
T
wehub-resource-sync b957a53def
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:21:23 +08:00

43 lines
1.0 KiB
C#

// Copyright (c) Microsoft. All rights reserved.
using System.ComponentModel.DataAnnotations;
namespace ChatWithAgent.Configuration;
/// <summary>
/// Azure OpenAI embeddings configuration.
/// </summary>
public sealed class AzureOpenAIEmbeddingsConfig
{
/// <summary>
/// Configuration section name.
/// </summary>
public const string ConfigSectionName = "AzureOpenAIEmbeddings";
/// <summary>
/// The name of the embeddings deployment.
/// </summary>
[Required]
public string DeploymentName { get; set; } = string.Empty;
/// <summary>
/// The name of the embeddings model.
/// </summary>
public string ModelName { get; set; } = string.Empty;
/// <summary>
/// The embeddings model version.
/// </summary>
public string ModelVersion { get; set; } = string.Empty;
/// <summary>
/// The SKU name.
/// </summary>
public string? SkuName { get; set; }
/// <summary>
/// The SKU capacity
/// </summary>
public int? SkuCapacity { get; set; }
}