openai-api
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "openai-api", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A tiny client module for the openAI API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,3 +52,3 @@ # openai-api | ||
#### Example of a successful completion response: | ||
```json | ||
```js | ||
{ | ||
@@ -74,3 +74,3 @@ id: 'some-long-id', | ||
```json | ||
```js | ||
openai.encode('This is an encoding test. Number of tokens is not necessarily the same as word count.').then((result) => { | ||
@@ -77,0 +77,0 @@ console.log("Number of tokens for string:" + result.length); |
1506186