Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
samestrin committed Jun 12, 2024
1 parent 449838e commit 72c5334
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,21 @@ npm install llm-interface

### Example

### Import `llm-interface`

```javascript
const handlers = require("llm-interface");
```

or

```javascript
import handlers from "llm-interface";
```

#### OpenAI Interface

```javascript
const openai = new handlers.openai(process.env.OPENAI_API_KEY);
const message = {
model: "gpt-3.5-turbo",
Expand Down

0 comments on commit 72c5334

Please sign in to comment.