apollo-ai-api-client
Advanced tools
Comparing version 0.1.19 to 0.1.20
@@ -34,2 +34,11 @@ export interface IAutoAbstractResponse { | ||
} | ||
export interface IContinuesClusteringInput { | ||
newArticles: IArticle[] | string[]; | ||
result?: IContinuesClusteringResultItem[]; | ||
abstractMaxChars?: number; | ||
} | ||
export interface IContinuesClusteringResultItem { | ||
article: IArticle; | ||
related: string[]; | ||
} | ||
export interface IAbstractInputBody { | ||
@@ -54,3 +63,3 @@ headline?: string; | ||
clustering(articles: IClusteringArticle[], threshold?: number, language?: ClusteringLanguage): Promise<IClusteringResponse>; | ||
continuedClustering(newArticles: IArticle[] | string[], presentArticles?: IArticle[], abstractMaxChars?: number): Promise<any>; | ||
continuedClustering(newArticles: IArticle[] | string[], presentArticles?: IContinuesClusteringResultItem[], abstractMaxChars?: number): Promise<any>; | ||
} |
@@ -97,5 +97,7 @@ "use strict"; | ||
newArticles, | ||
result: presentArticles, | ||
abstractMaxChars, | ||
}; | ||
if (presentArticles && presentArticles.length > 0) { | ||
parameters.result = presentArticles; | ||
} | ||
const clusteringResult = yield node_fetch_1.default(this.continuedClusteringEndpoint, { | ||
@@ -102,0 +104,0 @@ method: 'POST', |
{ | ||
"name": "apollo-ai-api-client", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"description": "Client for the apollo.ai auto abstract api.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
13258
186