Example app showcasing different usages of AI models.
Examples using Mistral AI API through the MistralAI Client for Dart package:
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.
It's possible to change the key at runtime in the app settings.
We've prepared some ready to use launch configurations for VSC.
In most cases, you should choose the Run app (debug mode)
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
./tool/flutter_run.sh
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