Table of Contents

Class MistralClient

Namespace
AutoGen.Mistral
Assembly
AutoGen.Mistral.dll
public class MistralClient : IDisposable
Inheritance
MistralClient
Implements
Inherited Members

Constructors

MistralClient(HttpClient, string?)

public MistralClient(HttpClient httpClient, string? baseUrl = null)

Parameters

httpClient HttpClient
baseUrl string

MistralClient(string, string?)

public MistralClient(string apiKey, string? baseUrl = null)

Parameters

apiKey string
baseUrl string

Methods

CreateChatCompletionsAsync(ChatCompletionRequest)

public Task<ChatCompletionResponse> CreateChatCompletionsAsync(ChatCompletionRequest chatCompletionRequest)

Parameters

chatCompletionRequest ChatCompletionRequest

Returns

Task<ChatCompletionResponse>

Dispose()

public void Dispose()

HttpRequestRaw(HttpMethod, object, bool)

protected Task<HttpResponseMessage> HttpRequestRaw(HttpMethod verb, object postData, bool streaming = false)

Parameters

verb HttpMethod
postData object
streaming bool

Returns

Task<HttpResponseMessage>

StreamingChatCompletionsAsync(ChatCompletionRequest)

public IAsyncEnumerable<ChatCompletionResponse> StreamingChatCompletionsAsync(ChatCompletionRequest chatCompletionRequest)

Parameters

chatCompletionRequest ChatCompletionRequest

Returns

IAsyncEnumerable<ChatCompletionResponse>