Skip to content

Commit

Permalink
fix: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsteele authored Sep 13, 2023
1 parent ea86790 commit 18a8369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ await fetch('https://api.openai.com/v1/embeddings', {
In an effort to streamline all the utilities into a single opinionated service, you can create a `client` that will determine what is the best model and truncate if needed to fit your needs.
```js
import { createClient } = from 'openai-tokens'
import { createClient } from 'openai-tokens'

const client = createClient({
// put in your OpenAI key here
Expand Down Expand Up @@ -329,7 +329,7 @@ You can pass options to the validate wrapper as seen in the examples above. The
A dynamic router has been provided for convenience. This allows you to pass multiple models. The module will choose the first valid model, so you can always maintain the smallest possible (and save some money 💰).
```js
import { dynamicWrapper } = from 'openai-tokens'
import { dynamicWrapper } from 'openai-tokens'

const chat = async (messages = []) => {
const body = await fetch('https://api.openai.com/v1/chat/completions', {
Expand Down

0 comments on commit 18a8369

Please sign in to comment.