wingbot 3.76.18 → 3.77.0-alpha.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.
@@ -109,7 +109,7 @@ class WingbotModel extends CachedModel {
109
109
  `matches=${encodeURIComponent(this._matches)}`
110
110
  ];
111
111
 
112
- if (this._options.verbose) this._log.log(`#NLP: ${text} [query]`, { matches: this._matches, localEntities: entities });
112
+ if (this._options.verbose) this._log.debug('#NLP query', { text, matches: this._matches, localEntities: entities });
113
113
 
114
114
  if (entities) {
115
115
  const buf = await this._brotli(Buffer.from(JSON.stringify({ entities })));
@@ -124,7 +124,7 @@ class WingbotModel extends CachedModel {
124
124
 
125
125
  if (res.status === 403) {
126
126
  // model does not exist
127
- this._log.log(`NLP model '${this._model}' does not exist or is not deployed yet.`);
127
+ this._log.warn('NLP model does not exist or is not deployed yet', { model: this._model });
128
128
  return { intents: [], entities: [] };
129
129
  }
130
130
 
@@ -136,7 +136,7 @@ class WingbotModel extends CachedModel {
136
136
  throw new Error(`[${res.status}] Invalid JSON response: ${responseText}`);
137
137
  }
138
138
 
139
- if (this._options.verbose) this._log.log(`#NLP: ${text} [response]`, response);
139
+ if (this._options.verbose) this._log.debug('#NLP response', { text, response });
140
140
 
141
141
  if (res.status >= 300) {
142
142
  this._log.warn(`AI query failed: ${response.message || res.statusText}`);