@leikeduntech/leiai-js 2.7.0 → 2.7.1

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/build/index.js +2 -1
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -344,8 +344,9 @@ Current date: ${currentDate}`;
344
344
  let pluginList;
345
345
  if (completionParams.pluginList) {
346
346
  pluginList = completionParams.pluginList;
347
- delete completionParams.pluginList;
348
347
  }
348
+ if (typeof completionParams.pluginList !== "undefined")
349
+ delete completionParams.pluginList;
349
350
  let body = {
350
351
  max_tokens: maxTokens,
351
352
  ...this._completionParams,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leikeduntech/leiai-js",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "author": "liuhean",
5
5
  "repository": {
6
6
  "type": "git",