Skip to content
/ Custom-Ai Public template
generated from iotserver24/custom-ai

a custom ai using cloudflare workers ai which acts as given prompt and has memory of previous chat

Notifications You must be signed in to change notification settings

nmaco-in/Custom-Ai

Repository files navigation

Custom Chat Application using Cloudflare Workers AI and system prompt

A web based chat interface built on Cloudflare Pages that allows for exploring Text Generation models on Cloudflare Workers AI. Design is built using tailwind.

This project makes use of LocalStorage to maintain state. We have better solutions available (more coming soon).

please dont forget to update your system prompt in index.tsx and script.js

upload your logo i.e logo.png and favicon.ico in public/static

This is a template repository. Please feel free to create your own repository from this one by using the "Use this template" button. It's right next to the ⭐️ this repo button, which you could totally do as well if you wanted to.

This is, like all of us, a Work in Progress.

Installation

npm install
# If this is your first time using workers by cloudflare
npx wrangler login

Develop

This uses the local Vite server for rapid development

npm run dev

Preview

This builds and runs in Wrangler your site locally, just as it will run on production

npm run preview

Deploy

This hosts your site on Cloudflare Pages

npm run deploy

Debug

npx wrangler pages deployment tail

About

a custom ai using cloudflare workers ai which acts as given prompt and has memory of previous chat

Resources

Stars

Watchers

Forks