chatgpt-api-free
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -57,4 +57,8 @@ import fetch from 'node-fetch' | ||
if (jsonRes.error) { | ||
throw new Error(`\nAPI Error:\n\nMessage: ${jsonRes.error.message}\nType: ${jsonRes.error.type}\nParam: ${jsonRes.error.param}\nCode: ${jsonRes.error.code}\n\n\n`) | ||
} | ||
return { choices, usage } | ||
} | ||
} |
{ | ||
"name": "chatgpt-api-free", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "JS Library for https://github.com/PawanOsman/ChatGPT \n\n Note: this is not compattible with the image generation api, it is only compattible with the text completion and chat completion api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4631
56