Op Englesch liesen

Deelen iwwer


OllamaChatClient Constructors

Definition

Overloads

OllamaChatClient(String, String, HttpClient)

Initializes a new instance of the OllamaChatClient class.

OllamaChatClient(Uri, String, HttpClient)

Initializes a new instance of the OllamaChatClient class.

OllamaChatClient(String, String, HttpClient)

Source:
OllamaChatClient.cs

Initializes a new instance of the OllamaChatClient class.

C#
public OllamaChatClient(string endpoint, string? modelId = default, System.Net.Http.HttpClient? httpClient = default);

Parameters

endpoint
String

The endpoint URI where Ollama is hosted.

modelId
String

The ID of the model to use. This ID can also be overridden per request via ModelId. Either this parameter or ModelId must provide a valid model ID.

httpClient
HttpClient

An HttpClient instance to use for HTTP operations.

Applies to

.NET 10 (package-provided) an aner Versiounen
Produkt Versiounen
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

OllamaChatClient(Uri, String, HttpClient)

Source:
OllamaChatClient.cs

Initializes a new instance of the OllamaChatClient class.

C#
public OllamaChatClient(Uri endpoint, string? modelId = default, System.Net.Http.HttpClient? httpClient = default);

Parameters

endpoint
Uri

The endpoint URI where Ollama is hosted.

modelId
String

The ID of the model to use. This ID can also be overridden per request via ModelId. Either this parameter or ModelId must provide a valid model ID.

httpClient
HttpClient

An HttpClient instance to use for HTTP operations.

Applies to

.NET 10 (package-provided) an aner Versiounen
Produkt Versiounen
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)