MistralAIServiceCollectionExtensions.AddMistralChatCompletion Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an Mistral chat completion service with the specified configuration.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddMistralChatCompletion (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string modelId, string apiKey, Uri? endpoint = default, string? serviceId = default);
static member AddMistralChatCompletion : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * string * Uri * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddMistralChatCompletion (services As IServiceCollection, modelId As String, apiKey As String, Optional endpoint As Uri = Nothing, Optional serviceId As String = Nothing) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection instance to augment.
- modelId
- String
The name of the Mistral modelId.
- apiKey
- String
The API key required for accessing the Mistral service.
- endpoint
- Uri
Optional uri endpoint including the port where MistralAI server is hosted. Default is https://api.mistral.ai.
- serviceId
- String
A local identifier for the given AI service.
Returns
The same instance as services
.