Comparing version 1.0.24 to 1.0.25
@@ -24,3 +24,3 @@ export = Client; | ||
}>; | ||
chatbot(input: string, history: { input: string, response: string }[]): Promise<{ | ||
chatbot(input: string, context: string, history: { input: string, response: string }[]): Promise<{ | ||
status: number; | ||
@@ -27,0 +27,0 @@ statusText: string; |
@@ -48,5 +48,6 @@ const axios = require('axios') | ||
chatbot(input, history = null) { | ||
chatbot(input, context = null, history = null) { | ||
const payload = { | ||
'input': input, | ||
'context': context, | ||
'history': history | ||
@@ -53,0 +54,0 @@ }; |
{ | ||
"name": "nlpcloud", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"description": "NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, text generation, blog post generation, code generation, question answering, machine translation, language detection, semantic similarity, tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production, served through a REST API.\n\nThis is the Node.js client for the NLP Cloud API.\n\nMore details here: https://nlpcloud.io\n\nDocumentation: https://docs.nlpcloud.io", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -173,2 +173,3 @@ # Node.js Client For NLP Cloud | ||
1. Your input | ||
1. (Optional) `context` A general context about the conversation | ||
1. (Optional) `history` The history of your previous exchanges with the model | ||
@@ -175,0 +176,0 @@ |
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
30773
394
361