Giter VIP home page Giter VIP logo

chat-clouflare's Introduction

ChatCloudflare

Want to give Cloudflare Workers AI a try? This repo can help you get started quickly with a chat application built using Next.js, Tailwindcss and Workers AI. Based on Nashex's wonderful GPT-4 Playground repo.

Demo

https://chat-llama2.pages.dev/

Deploy

0 . Go cloudflare.com and signup one if dont have account yet

  1. npx @cloudflare/next-on-pages
  2. npx wrangler pages deploy .vercel/output/static

    your app is deployed but can't use yet

  3. Goto your Cloudflare dashboard https://dash.cloudflare.com Workers & Pages section and go to setting of the Pages app you just deployed.
  4. Add environment variables for CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_KEY CLOUDFLARE_ACCOUNT_ID you can find right in that page Workers & Pages/overview CLOUDFLARE_API_KEY (you can create a new key with just Workers AI access)
  5. Go to that page you deployed Settings>Functions>Compatibility flags section Add 'nodejs_compat' in both product, preview.

Finally run 'npx wrangler pages deploy .vercel/output/static' in your vscode again and your own Llama chat is ready for action!

chat-clouflare's People

Contributors

binhkid2 avatar

Stargazers

 avatar Tín Phạm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.