Skip to main content

Namespace: mistral

Functions

Api

Api(settings): MistralApiConfiguration

Creates an API configuration for the Mistral API. It calls the API at https://api.mistral.ai/v1 and uses the MISTRAL_API_KEY env variable by default.

Parameters

NameType
settingsOmit<BaseUrlPartsApiConfigurationOptions, "baseUrl"> & { baseUrl?: string | Partial<UrlParts> } & { apiKey?: string }

Returns

MistralApiConfiguration

Defined in

packages/modelfusion/src/model-provider/mistral/MistralFacade.ts:13


ChatTextGenerator

ChatTextGenerator(settings): MistralChatModel

Parameters

NameType
settingsMistralChatModelSettings

Returns

MistralChatModel

Defined in

packages/modelfusion/src/model-provider/mistral/MistralFacade.ts:21


TextEmbedder

TextEmbedder(settings): MistralTextEmbeddingModel

Parameters

NameType
settingsMistralTextEmbeddingModelSettings

Returns

MistralTextEmbeddingModel

Defined in

packages/modelfusion/src/model-provider/mistral/MistralFacade.ts:25

Type Aliases

ChatMessage

Ƭ ChatMessage: Object

Type declaration

NameType
contentstring
role"system" | "user" | "assistant"

Defined in

packages/modelfusion/src/model-provider/mistral/MistralChatModel.ts:26


ChatPrompt

Ƭ ChatPrompt: ChatMessage[]

Defined in

packages/modelfusion/src/model-provider/mistral/MistralChatModel.ts:31