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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4631
56