Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "ts-chatgpt", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "./build/index.js", | ||
@@ -26,2 +26,3 @@ "types": "./build/index.d.ts", | ||
"gpt3", | ||
"gpt-4", | ||
"gpt4", | ||
@@ -51,2 +52,3 @@ "chatbot", | ||
"@babel/preset-typescript": "^7.13.0", | ||
"@faker-js/faker": "^7.6.0", | ||
"@types/dotenv": "^8.2.0", | ||
@@ -53,0 +55,0 @@ "@types/jest": "^26.0.23", |
@@ -62,2 +62,8 @@ # ts-chatgpt | ||
There are two types of return values for the `prompt` function: `ChatGPT` and `ChatGPTError`. | ||
| Type | Description | | ||
| -------------- | ------------------------------------------------------- | | ||
| `ChatGPT` | The response from the ChatGPT API. | | ||
| `ChatGPTError` | The response from the ChatGPT API when an error occurs. | | ||
`ChatGPT` by type is as follows: | ||
@@ -89,3 +95,3 @@ | ||
Next, ChatGPTError as a type is as follows: | ||
Next, `ChatGPTError` as a type is as follows: | ||
@@ -92,0 +98,0 @@ ```ts |
19122
118
22