Example app showcasing the Mistral AI chat client.
flutter pub get
dart run build_runner build -d
- Open the
env.env
file in the root project - Replace
your api key
with your Mistral AI API key.
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.
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