in src/Microsoft.Extensions.Configuration.AzureAppConfiguration/Extensions/ContentTypeExtensions.cs [26:35]
public static bool IsAiChatCompletion(this ContentType contentType)
{
return contentType != null &&
contentType.IsJson() &&
!contentType.IsFeatureFlag() &&
!contentType.IsKeyVaultReference() &&
contentType.Parameters.ContainsKey("profile") &&
!string.IsNullOrEmpty(contentType.Parameters["profile"]) &&
contentType.Parameters["profile"].StartsWith(RequestTracingConstants.AIChatCompletionMimeProfile);
}