Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simotae14/ai-course

First Project using open-ai API, bun.js
https://github.com/simotae14/ai-course

bun open-ai

Last synced: 9 days ago
JSON representation

First Project using open-ai API, bun.js

Awesome Lists containing this project

README

        

# ai-course

# To remember

Add the open ai key in the .env file in the format

```
OPENAI_API_KEY='...'
```

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.ts
```

This project was created using `bun init` in bun v1.0.15. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.

## Chat GPT clone

run

```bash
bun chat.ts
```

## Semantic Search

run

```bash
bun search.ts
```

## Documents qa

run

```bash
bun qa.ts "question"
```

## Function calls

run

```bash
bun function.ts "expression"
```