Skip to content

realByg/cfworkers-aichat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🥡 cfworkers-aichat

AI Chat bot built on Cloudflare workers, powered by OpenAI

📚 Usage

  1. install wrangler

    npm install -g wrangler
    wrangler login
  2. clone the repo to your local machine and install the dependencies

    git clone https://github.com/realByg/cfworkers-aichat
    cd cfworkers-aichat
    npm i
  3. edit wrangler.toml

    name = "ai" # the prefix of your *.workers.dev domain
    main = "index.js"
    compatibility_date = "2023-02-10"
    
    workers_dev = true
    
    [vars]
    API_KEY = "" # (optional) set you api key from openai here
    ORG_ID = ""
    
    
    [site]
    bucket = "./site/dist"
  4. deploy the site with wrangler

    wrangler publish

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published