Download the PHP package helgesverre/mistral without Composer

On this page you can find all versions of the php package helgesverre/mistral. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mistral

Laravel Client for Mistral.AI

Latest Version on Packagist Total Downloads

The Mistral.ai Laravel Client enables laravel applications to interact with the Mistral.ai API, providing straightforward access to features like chat completions and text embeddings.

Get your API key at console.mistral.ai.

Installation

You can install the package via composer:

You can publish the config file with:

This is the contents of the published config file:

Usage

Client Instantiation

Create an instance of the Mistral client to start interacting with the API. This instance will be your primary interface for sending requests to Mistral.AI.

Resources

Models Resource

List available models

Embeddings Resource

Create embedding

Chat Resource

Create Chat Completion

Create Chat Completion with Function Calling

Create Streamed Chat Completions

SimpleChat Resource

For convenience, the client also provides a simple chat completion method, which returns a simpler, condensed and flattened DTO, which is useful for quick prototyping.

Create simple chat completions

SimpleChat Resource

For convenience, the client also provides a simple chat completion method, which returns a simpler, condensed, and flattened DTO, useful for quick prototyping.

Create Streamed Simple Chat Completions

List of DTOs

For convenience, here is a list of all the DTOs available in this package.

List of available Mistral models

The following models are available in the Mistral API. You can use the Model enum in this package to refer to them, or use the string value directly.

Enum Case String Value Documentation Link
Model::large->value 'mistral-large-latest' Mistral Large Docs
Model::medium->value 'mistral-medium-latest' Mistral Medium Docs
Model::small->value 'mistral-small-latest' Mistral Small Docs
Model::mixtral->value 'open-mixtral-8x7b' Mistral Mixtral-8x7b Docs
Model::mistral7b->value 'open-mistral-7b' Mistral Mistral-7b Docs
Model::embed->value 'mistral-embed' Mistral Embed Docs

Testing

License

The MIT License (MIT). Please see License File for more information.

Disclaimer

Mistral and the Mistral logo are trademarks of Mistral.ai. This package is not affiliated with, endorsed by, or sponsored by Mistral.ai. All trademarks and registered trademarks are the property of their respective owners.

See Mistral.AI for more information.


All versions of mistral with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
saloonphp/laravel-plugin Version ^v3.5
spatie/laravel-data Version ^3|^4
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package helgesverre/mistral contains the following files

Loading the files please wait ....