Code Monkey home page Code Monkey logo

chatgpt-ts-cfworkers's Introduction

Quickstart | 中文

git clone https://github.com/miniboxs/chatgpt-ts-cfworkers.git
cd chatgpt-ts-cfworkers
npm install
cp wrangler.toml.template wrangler.toml
npm run login
npm run deploy

*If chatgpt is not needed, please deploy it directly and check How to use?

Create D1 and execute schema.sql

wrangler d1 create <DATABASE_NAME>
wrangler d1 execute   --file=sql/schema.sql

D1 visit: https://developers.cloudflare.com/d1/

Edit wrangler.toml

[[d1_databases]]
binding = "DB" # i.e. available in your Worker on env.DB
database_name="<DATABASE_NAME>"
database_id="<unique-ID-for-your-database>"

How to use?

Endpoint Method Parameter Type Required Description
/api/ai GET question string Yes The content of the question
cid string No of context identifiers
/api/text2img POST prompt string Yes Text prompt for image generation
/api/text POST prompt string Yes Text prompt for text processing

Another

https://github.com/Hideipnetwork/hideipnetwork-web

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.