This is a submission for the Cloudflare AI Challenge.
All in one app with ai for chat, image generation, text summarization, code copilot and Translation generator.
Demo
My Code
AI App for Chat, Code Copilot, Translation, Image Generation
Details of AI Models used
Type
Model Name
Conversation
@cf/meta/llama-2-7b-chat-fp16
Image generation
@cf/lykon/dreamshaper-8-lcm
Summarization
@cf/facebook/bart-large-cnn
Translation
@cf/meta/m2m100-1.2b
Environmental Variables
CLOUDFLARE_ACCOUNT_ID=““
open https://dash.cloudflare.com and grab your cridentials.
Run Development Server
Deploy on Cloudflare Pages
The easiest way to deploy your Next.js app is to use the Cloudflare Pages
Journey
Got a inspiration from Code with Antonio and this is the first time i am deploying a nextjs app on pages, it was easy to integrate AI models in nextjs app and easy to deploy nextjs app on Cloudflare Pages.
Multiple Models and/or Triple Task Types
Here is the list of all Cloudflare Models used in the project.
Type
Model Name
Conversation
@cf/meta/llama-2-7b-chat-fp16
Image generation
@cf/lykon/dreamshaper-8-lcm
Summarization
@cf/facebook/bart-large-cnn
Translation
@cf/meta/m2m100-1.2b