https://github.com/extrawest/local_ai_multiproviders_showcase
local ia multiprovider on flutter
https://github.com/extrawest/local_ai_multiproviders_showcase
bloc dart flutter groq llmcpp openai
Last synced: 4 months ago
JSON representation
local ia multiprovider on flutter
- Host: GitHub
- URL: https://github.com/extrawest/local_ai_multiproviders_showcase
- Owner: extrawest
- Created: 2024-07-30T10:59:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T15:01:16.000Z (almost 2 years ago)
- Last Synced: 2025-06-10T20:00:54.083Z (about 1 year ago)
- Topics: bloc, dart, flutter, groq, llmcpp, openai
- Language: Dart
- Homepage:
- Size: 57.6 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Local Ai Multiproviders Showcase
[](
[]()
[](mailto:oleksandr.samoilenko@extrawest.com)
[]()


## PROJECT INFO
- **AI provider Application on the latest version of Flutter**
- **We were intended to create a an MVP showcase application that allows you to use Groq, OpenAi and llm.cpp providers through single ui. You only need to select one of the providers and start chatting.**
## Preview
https://github.com/user-attachments/assets/d23e9136-42fe-48d3-8f95-229888dd9400
## Features
- Groq with "mixtral-8x7b-32768"
- OpenAi with "gpt-3.5-turbo"
- Llama.cpp with any model you want
## Installing:
**1. Clone this repo to your folder:**
```
git clone https://github.com/extrawest/local_ai_multiproviders_showcase.git
```
**2. Change current directory to the cloned folder:**
```
cd local_ai_multiproviders_showcase
```
**3. Get packages**
```
flutter pub get
```
## Create .env file
To use Grouq and Openai API you need to add some information to .env file
```
GROQ_API_KEY='YOUR_GROQ_API_KEY'
GROQ_URL = 'https://api.groq.com/openai' -leave it as is
OPENAI_API_KEY='YOUR_OPENAI_API_KEY'
OPENAI_URL = 'https://api.openai.com' -leave it as is
LLAMACPP_URL = 'URL_TO_YOUR_LLAMACPP_SERVER'
```
## run LLM.CPP server
**1. download this repo**
https://github.com/ggerganov/llama.cpp
**2. Open the project and run the server**
```
./llama-server -m path_to_your_model f -c 2048 --port 8080 --host 127.0.0.1
```
**3. Add the server url to .env file**
You probaly will neet to create a tunnel to your server to make it accessible. You can use ngrok for that.
Run this command
```
ngrok http your_local_url
```
Now you are ready to run the project
Created by Oleksandr Samoilenko
[Extrawest.com](https://www.extrawest.com), 2024