|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace Microsoft.Extensions.AI;
public class OpenAIEmbeddingGeneratorIntegrationTests : EmbeddingGeneratorIntegrationTests
{
protected override IEmbeddingGenerator<string, Embedding<float>>? CreateEmbeddingGenerator() =>
IntegrationTestHelpers.GetOpenAIClient()
?.AsEmbeddingGenerator(Environment.GetEnvironmentVariable("OPENAI_EMBEDDING_MODEL") ?? "text-embedding-3-small");
}
|