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
Name | Type |
---|---|
settings | Omit <BaseUrlPartsApiConfigurationOptions , "baseUrl" > & { baseUrl? : string | Partial <UrlParts > } & { apiKey? : string } |
Returns
Defined in
packages/modelfusion/src/model-provider/mistral/MistralFacade.ts:13
ChatTextGenerator
▸ ChatTextGenerator(settings
): MistralChatModel
Parameters
Name | Type |
---|---|
settings | MistralChatModelSettings |
Returns
Defined in
packages/modelfusion/src/model-provider/mistral/MistralFacade.ts:21
TextEmbedder
▸ TextEmbedder(settings
): MistralTextEmbeddingModel
Parameters
Name | Type |
---|---|
settings | MistralTextEmbeddingModelSettings |
Returns
Defined in
packages/modelfusion/src/model-provider/mistral/MistralFacade.ts:25
Type Aliases
ChatMessage
Ƭ ChatMessage: Object
Type declaration
Name | Type |
---|---|
content | string |
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