Swift AI is a web application built using Laravel, Inertia.js, and Vue.js. It serves as a centralized hub that seamlessly integrates various AI tools and services from companies like OpenAI, Microsoft, and Stability AI. The platform aims to streamline the usage of diverse AI solutions, providing users with a cohesive experience.
- AI Chat (OpenAI)
- AI Image Generation (Stability AI)
- AI Documents (OpenAI)
- Text To Speech (Microsoft Azure)
- Speech To Text (OpenAI)
Run the following commands:
- Grab a fresh
.env
file from Laravel and save the following:
APP_NAME=SwiftAI Example
APP_ENV=local
APP_KEY=
- Generate a new App Key
php artisan key:generate
- Link the image directory
php artisan storage:link
- Install PHP dependencies
composer install
- Install node packages
npm install
- Migrate the database
php artisan migrate
- Seed the
personalities
table
php artisan db:seed --class=PersonalitiesTableSeeder
- Add the following variables to your
.env
file and add your keys. You can obtain your keys from OpenAI, Stability AI, and Microsoft Azure
STABILITY_API_KEY=
STABILITY_MODEL=stable-diffusion-xl-beta-v2-2-2
STABILITY_MODEL_UPSCALE=esrgan-v1-x2plus
OPENAI_API_KEY=
OPENAI_MODEL=gpt-3.5-turbo
OPENAI_MODEL_EMBEDDING=text-embedding-ada-002
OPENAI_MODEL_QA=gpt-3.5-turbo-16k
AZURE_RESOURCE_REGION=eastus
AZURE_RESOURCE_KEY=
- Run the server
php artisan serve
- Build assets
npm run build
## OR
npm run watch