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_infoGet the information for a flightget_mulai3_app_infoGet the information of Mulai3 appget_current_weatherGet current weather information of the specified citygenerate_imagesGenerate images based on the given prompt using Dall-E 3 and 2.
Create .env.local and configure several API_KEYs from .env.example.
Run the development server:
pnpm devOpen http://localhost:3000 with your browser to see the result.
You can build to see lint errors on production environment.
pnpm buildThe program uses edge functions (app/api/chat/route.ts). It is intended to deploy to Vercel Platform.
I created a brother project Mulai which utilizes more React Client Components. You might also want to review it.