From e9c92fe1ca2ec90fb7018e9834963f5ebfe44654 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Tue, 26 Nov 2024 23:24:22 +0000 Subject: [PATCH] Registering the correct services Fixes #294 --- .../CommunityToolkit.Aspire.Hosting.Ollama.Web/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ollama/CommunityToolkit.Aspire.Hosting.Ollama.Web/Program.cs b/examples/ollama/CommunityToolkit.Aspire.Hosting.Ollama.Web/Program.cs index a06e4ef3..2bae8116 100644 --- a/examples/ollama/CommunityToolkit.Aspire.Hosting.Ollama.Web/Program.cs +++ b/examples/ollama/CommunityToolkit.Aspire.Hosting.Ollama.Web/Program.cs @@ -12,8 +12,8 @@ builder.Services.AddOutputCache(); -builder.AddKeyedOllamaApiClient(ServiceKeys.Phi3); -builder.AddKeyedOllamaApiClient(ServiceKeys.Llama); +builder.AddKeyedOllamaSharpChatClient(ServiceKeys.Phi3); +builder.AddKeyedOllamaSharpChatClient(ServiceKeys.Llama); var app = builder.Build();