Skip to content

miniboxs/chatgpt-ts-cfworkers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published