@docbrasil/api-systemmanager 1.1.34 → 1.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/api/ai.js +2 -2
  2. package/package.json +1 -1
package/api/ai.js CHANGED
@@ -55,7 +55,7 @@ class MyndAI {
55
55
  * @param {object} params.context The context to apply to a prompt
56
56
  * @param {string} params.text The text to add to the prompt
57
57
  * @param {array<base64>} params.medias Medias to add to the case in base64 (PDF, Image, Video, Audio)
58
- * @param {string} params.propmpt The actual prompt with context and text to apply to
58
+ * @param {string} params.prompt The actual prompt with context and text to apply to
59
59
  * @return {Promise<object>} data
60
60
  * @return {boolean} data.success true|false for success
61
61
  * @return {object} data.result the result of the AI call
@@ -82,7 +82,7 @@ class MyndAI {
82
82
 
83
83
  try {
84
84
  Joi.assert(params, Joi.object().required().error(new Error('params is required')));
85
- Joi.assert(params.propmpt, Joi.string().required().error(new Error('Provide a prompt')));
85
+ Joi.assert(params.prompt, Joi.string().required().error(new Error('Provide a prompt')));
86
86
 
87
87
  const apiCall = self._client
88
88
  .post('/agents/explain', params, self._setHeader(authorization));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docbrasil/api-systemmanager",
3
3
  "description": "Module API System Manager",
4
- "version": "1.1.34",
4
+ "version": "1.1.35",
5
5
  "scripts": {
6
6
  "htmldoc": "rm -rf docs && jsdoc api/** -d docs -t ./node_modules/better-docs",
7
7
  "doc": "rm -rf doc && mkdir doc && jsdoc2md api/**/* api/* > doc/api.md",