simotae14 / ai-course

First Project using open-ai API, bun.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ai-course

To remember

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.

Chat GPT clone

run

bun chat.ts

Semantic Search

run

bun search.ts

Documents qa

run

bun qa.ts "question"

Function calls

run

bun function.ts "expression"

About

First Project using open-ai API, bun.js


Languages

Language:TypeScript 100.0%