Skip to content

Latest commit

 

History

History
89 lines (81 loc) · 2.48 KB

README.md

File metadata and controls

89 lines (81 loc) · 2.48 KB

Swift AI

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.

Features

  1. AI Chat (OpenAI)
  2. AI Image Generation (Stability AI)
  3. AI Documents (OpenAI)
  4. Text To Speech (Microsoft Azure)
  5. Speech To Text (OpenAI)

Installation

Grab a fresh .env file from Laravel and save the following:

APP_NAME='SwiftAI Example'
APP_ENV=local
APP_KEY=

Add your database credentials to the .env file. For example, for MySQL:

DB_CONNECTION=mysql
DB_HOST=<your-database-host, e.g. localhost>
DB_PORT=<your-database-port, e.g. 3306>
DB_DATABASE=<your-database-name>
DB_USERNAME=<your-database-username>
DB_PASSWORD=<your-database-password>

Install PHP dependencies

composer install

Generate a new App Key

php artisan key:generate 

Link the image directory

php artisan storage:link

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

Screenshots

Create New Conversation in AI Chat AI Chat AI Images AI Documents Q&A in AI Documents Text To Speech Speech To Text

Thanks