Skip to content
Docs Try Aspire

AspireOllamaSharpExtensions

Class static net10.0
📦 CommunityToolkit.Aspire.OllamaSharp v13.1.1
Extension methods for setting up OllamaSharp client in an Hosting.IHostApplicationBuilder.
namespace Microsoft.Extensions.Hosting;
public static class AspireOllamaSharpExtensions
{
// ...
}
AddKeyedOllamaApiClient(IHostApplicationBuilder, string, Action<OllamaSharpSettings>)extension
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.
AddKeyedOllamaApiClient(IHostApplicationBuilder, object, OllamaSharpSettings)extension
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.
AddOllamaApiClient(IHostApplicationBuilder, string, Action<OllamaSharpSettings>)extension
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.
View all methods