AspireOllamaSharpExtensions
Classstaticnet10.0
Extension methods for setting up OllamaSharp client in an
Hosting.IHostApplicationBuilder . namespace Microsoft.Extensions.Hosting;
public static class AspireOllamaSharpExtensions{ // ...}8 members
Methods8
Section titled Methods Adds
IOllamaApiClient services to the container using the connectionName as the service key. AddKeyedOllamaApiClient(IHostApplicationBuilder, object, string, Action<OllamaSharpSettings>) extension Adds
IOllamaApiClient services to the container using the specified serviceKey . Adds
IOllamaApiClient services to the container using the specified serviceKey . AddKeyedOllamaSharpChatClient(IHostApplicationBuilder, string, Action<OllamaSharpSettings>) extensionobsolete Adds
IOllamaApiClient and AI.IChatClient services to the container using the connectionName as the service key. AddKeyedOllamaSharpEmbeddingGenerator(IHostApplicationBuilder, string, Action<OllamaSharpSettings>) extensionobsolete Adds
IOllamaApiClient and AI.IEmbeddingGenerator`2 services to the container using the connectionName as the service key. Adds
IOllamaApiClient services to the container. AddOllamaSharpChatClient(IHostApplicationBuilder, string, Action<OllamaSharpSettings>) extensionobsolete Adds
IOllamaApiClient and AI.IChatClient services to the container. AddOllamaSharpEmbeddingGenerator(IHostApplicationBuilder, string, Action<OllamaSharpSettings>) extensionobsolete Adds
IOllamaApiClient and AI.IEmbeddingGenerator`2 services to the container.