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.1.0 to 6.2.0

6

dist/cohere.js

@@ -105,5 +105,9 @@ (function webpackUniversalModuleDefinition(root, factory) {

});
var meta = results[0].body.meta || undefined;
var response = {
statusCode: results[0].statusCode,
body: { embeddings: embeddings },
body: {
embeddings: embeddings,
meta: meta,
},
};

@@ -110,0 +114,0 @@ return response;

@@ -196,2 +196,3 @@ export interface cohereResponse<T> {

}[];
meta?: metaResponse;
}

@@ -204,2 +205,3 @@

token_strings: string[];
meta?: metaResponse;
}

@@ -210,2 +212,3 @@

text: string;
meta?: metaResponse;
}

@@ -218,2 +221,3 @@

embeddings: number[][];
meta?: metaResponse;
}

@@ -232,2 +236,3 @@

}[];
meta?: metaResponse;
}

@@ -242,2 +247,3 @@

}[];
meta?: metaResponse;
}

@@ -248,4 +254,16 @@

summary: string;
meta?: metaResponse;
}
export interface metaResponse {
api_version: APIVersionMeta;
warnings?: string[];
}
export interface APIVersionMeta {
version: string;
is_deprecated?: boolean;
is_experimental?: boolean;
}
export interface error {

@@ -252,0 +270,0 @@ /** Text explaining what went wrong. */

2

package.json
{
"name": "cohere-ai",
"version": "6.1.0",
"version": "6.2.0",
"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