Comparing version 6.2.0 to 6.2.1
@@ -121,2 +121,10 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
Cohere.prototype.classify = function (config) { | ||
if (config.preset === undefined || config.preset === "") { | ||
if (config.examples === undefined || config.examples.length === 0) { | ||
throw new Error("`examples` must not be empty"); | ||
} | ||
if (config.inputs === undefined || config.inputs.length === 0) { | ||
throw new Error("`inputs` must not be empty"); | ||
} | ||
} | ||
return this.makeRequest(ENDPOINT.CLASSIFY, config); | ||
@@ -123,0 +131,0 @@ }; |
{ | ||
"name": "cohere-ai", | ||
"version": "6.2.0", | ||
"version": "6.2.1", | ||
"description": "A Node.js SDK with TypeScript support for the Cohere API.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://docs.cohere.ai", |
Sorry, the diff of this file is not supported yet
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
45179
598
1