MistralAI
features and configuration options, please refer to the API reference.
Class | Package | Local | Serializable | PY support | Package downloads | Package latest |
---|---|---|---|---|---|---|
MistralAI | @langchain/mistralai | ❌ | ✅ | ❌ |
@langchain/mistralai
integration package.
MISTRAL_API_KEY
environment variable:
@langchain/mistralai
package:
suffix
to the prompt. Suffixes can be passed via the call options when invoking a model like so:
console.log('hello world')
code snippet, but also included extra unwanted text. By adding a suffix, we can constrain the model to only complete the prompt up to the suffix (in this case, three backticks). This allows us to easily parse the completion and extract only the desired response without the suffix using a custom output parser.