Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/simotae14/ai-course
- Owner: simotae14
- Created: 2023-12-02T18:51:29.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-12-08T23:13:41.000Z (12 months ago)
- Last Synced: 2024-04-17T05:04:40.286Z (7 months ago)
- Topics: bun, open-ai
- Language: TypeScript
- Homepage:
- Size: 240 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
```