Skip to content

Latest commit

 

History

History
76 lines (48 loc) · 2.45 KB

mistralai.md

File metadata and controls

76 lines (48 loc) · 2.45 KB

Mistral AI is a French artificial intelligence company focused on developing and providing large language models (LLMs). They emphasize open-source principles, making their models accessible and customizable for various applications. Mistral AI offers a range of models with varying sizes and capabilities, catering to different user needs. The company has gained significant attention and funding due to its commitment to transparency and collaboration within the AI community.

Interface Name

  • mistralai

Example Usage

const { LLMInterface } = require('llm-interface');

LLMInterface.setApiKey({'mistralai': process.env.MISTRALAI_API_KEY});

async function main() {
  try {
    const response = await LLMInterface.sendMessage('mistralai', 'Explain the importance of low latency LLMs.');
    console.log(response.results);
  } catch (error) {
    console.error(error);
    throw error;
  }
}

main();

Model Aliases

The following model aliases are provided for this provider.

  • default: mistral-large-latest
  • large: mistral-large-latest
  • small: mistral-small-latest
  • agent: mistral-large-latest

Embeddings Model Aliases

  • default: mistral-embed
  • large: mistral-embed
  • small: mistral-embed

Options

The following parameters can be passed through options.

  • max_tokens: Details not available, please refer to the LLM provider documentation.
  • random_seed: Details not available, please refer to the LLM provider documentation.
  • response_format: Details not available, please refer to the LLM provider documentation.
  • safe_prompt: Details not available, please refer to the LLM provider documentation.
  • stream: Details not available, please refer to the LLM provider documentation.
  • temperature: Details not available, please refer to the LLM provider documentation.
  • top_p: Details not available, please refer to the LLM provider documentation.

Features

  • Native JSON Mode
  • Streaming
  • Embeddings

Getting an API Key

Commercial with Free Trial: The MistralAI API is a commercial product but offers a $5.00 credit to get started. No credit card is required initially.

To get an API key, first create a Mistral AI account, then visit the link below.

Mistral AI documentation is available here.