Skip to content
Docs Try Aspire

AspireOllamaApiClientBuilder Constructors

Class Constructors 1 member
Builder class for configuring and creating an instance of AspireOllamaApiClient.
Constructor(IHostApplicationBuilder, object, bool) Section titled Constructor(IHostApplicationBuilder, object, bool)
Builder class for configuring and creating an instance of AspireOllamaApiClient.
public class AspireOllamaApiClientBuilder
{
public AspireOllamaApiClientBuilder(
IHostApplicationBuilder hostBuilder,
object serviceKey,
bool disableTracing)
{
// ...
}
}
hostBuilder IHostApplicationBuilder The Hosting.IHostApplicationBuilder with which services are being registered.
serviceKey object The service key used to register the OllamaApiClient service, if any.
disableTracing bool A flag to indicate whether tracing should be disabled.