zudello-integration-sdk 1.0.10 → 1.0.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudello-integration-sdk",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "Zudello Integrations SDK",
5
5
  "main": "./src/index.js",
6
6
  "repository": {
@@ -166,7 +166,7 @@ class ZudelloSDK extends BaseSDK {
166
166
  }
167
167
 
168
168
  async ai({ key, body }) {
169
- const validateIsEmpty = this.validator.isEmpty({ key, body });
169
+ const validateIsEmpty = this.validator.isEmpty({ key, model, messages });
170
170
 
171
171
  if (!validateIsEmpty.valid) {
172
172
  return this.responseHandler.error(validateIsEmpty.errors);