Comparing version 6.1.0 to 6.2.0
@@ -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. */ |
{ | ||
"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
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
44343
590