Skip to content

twxxk/mulai3

Repository files navigation

This is a multi generative AIs application.

The program is a Next.js project bootstrapped with create-next-app and integrated with AI SDK.

You can chat with AIs from several different platforms such as OpenAI, Fireworks.ai, Mistral, Groq, and Perplexity. Some models accept function calls.

The followings are supported functions:

  • get_flight_info Get the information for a flight
  • get_mulai3_app_info Get the information of Mulai3 app
  • get_current_weather Get current weather information of the specified city
  • generate_images Generate images based on the given prompt using Dall-E 3 and 2.

Getting Started

Create .env.local and configure several API_KEYs from .env.example.

Run the development server:

pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can build to see lint errors on production environment.

pnpm build

Deployment

The program uses edge functions (app/api/chat/route.ts). It is intended to deploy to Vercel Platform.

Deploy with Vercel

Reference

I created a brother project Mulai which utilizes more React Client Components. You might also want to review it.

Releases

Packages

Used by

Contributors

Languages