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

apollo-ai-api-client

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-ai-api-client - npm Package Compare versions

Comparing version 0.1.19 to 0.1.20

11

lib/apollo.ai/ApolloAiClient.d.ts

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

4

lib/apollo.ai/ApolloAiClient.js

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

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