Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub committed Nov 23, 2024
1 parent eab4dfa commit 89881a0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Microsoft.Extensions.AI;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.SemanticKernel.ChatCompletion;
using Microsoft.SemanticKernel.Connectors.Ollama;
using Microsoft.SemanticKernel.Embeddings;
Expand Down Expand Up @@ -219,8 +218,7 @@ public static IServiceCollection AddOllamaTextEmbeddingGeneration(
var loggerFactory = serviceProvider.GetService<ILoggerFactory>();
var builder = ((IEmbeddingGenerator<string, Embedding<float>>)new OllamaApiClient(endpoint, modelId))
.AsBuilder()
.UseLogging(loggerFactory);
.AsBuilder();
if (loggerFactory is not null)
{
Expand Down

0 comments on commit 89881a0

Please sign in to comment.