Add the open ai key in the .env file in the format
OPENAI_API_KEY='...'
To install dependencies:
bun install
To run:
bun run index.ts
This project was created using bun init
in bun v1.0.15. Bun is a fast all-in-one JavaScript runtime.
run
bun chat.ts
run
bun search.ts
run
bun qa.ts "question"
run
bun function.ts "expression"