Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cohere-ai

Package Overview
Dependencies
Maintainers
5
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cohere-ai - npm Package Compare versions

Comparing version 6.2.0 to 6.2.1

8

dist/cohere.js

@@ -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 @@ };

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc