Skip to content

nomtek/flutter_ai_examples

Repository files navigation

mistral_ai_chat_example_app

Example app showcasing the Mistral AI chat client.

Getting Started

Install dependencies

flutter pub get

Generate code

dart run build_runner build -d 

Setup Mistral AI API key

  1. Open the env.env file in the root project
  2. Replace your api key with your Mistral AI API key.

Run the example app

Using the Visual Studio Code

We've prepared some ready to use launch configurations for VSC.

In most cases, you should choose the regular mistral_ai_chat_example_app configuration.

Using the terminal

You can either use the flutter run command directly

flutter run --dart-define-from-file=env.env

or use a script that contains the above snippet

Linux/MacOS

./tool/flutter_run.sh

Windows

tool\flutter_run.bat

You can pass parameters to the script by appending them at the end like this:

// Linux/MacOS
./tool/flutter_run.sh -d chrome

// Windows
tool\flutter_run.bat -d chrome

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •