wingbot 3.74.2 → 3.74.4
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/.claude/settings.local.json +7 -0
- package/package.json +1 -1
- package/src/LLM.js +18 -11
- package/src/resolvers/expectedInput.js +1 -1
package/package.json
CHANGED
package/src/LLM.js
CHANGED
|
@@ -188,6 +188,13 @@ const LLMSession = require('./LLMSession');
|
|
|
188
188
|
* @property {number} nearestNeighbourCount
|
|
189
189
|
* @property {VectorSearchDocument[]} resultDocuments
|
|
190
190
|
*/
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @typedef {object} LLMConfiguration
|
|
194
|
+
* @property {LLMChatProvider} provider
|
|
195
|
+
* @property {boolean} [disableLLM]
|
|
196
|
+
*/
|
|
197
|
+
|
|
191
198
|
/**
|
|
192
199
|
* @class LLM
|
|
193
200
|
*/
|
|
@@ -240,13 +247,13 @@ class LLM {
|
|
|
240
247
|
transcriptLength = 5,
|
|
241
248
|
transcriptAnonymize = false,
|
|
242
249
|
model = null,
|
|
250
|
+
disableLLM,
|
|
243
251
|
...rest
|
|
244
252
|
} = configuration;
|
|
245
253
|
|
|
246
254
|
this._configuration = {
|
|
247
|
-
transcriptFlag: null,
|
|
248
|
-
transcriptLength: 5,
|
|
249
255
|
provider: null,
|
|
256
|
+
disableLLM,
|
|
250
257
|
logger: {
|
|
251
258
|
logPrompt: () => {}
|
|
252
259
|
},
|
|
@@ -303,8 +310,8 @@ class LLM {
|
|
|
303
310
|
}
|
|
304
311
|
|
|
305
312
|
/**
|
|
306
|
-
*
|
|
307
|
-
* @returns {
|
|
313
|
+
*
|
|
314
|
+
* @returns {LLMConfiguration}
|
|
308
315
|
*/
|
|
309
316
|
get configuration () {
|
|
310
317
|
return this._configuration;
|
|
@@ -340,13 +347,13 @@ class LLM {
|
|
|
340
347
|
};
|
|
341
348
|
}
|
|
342
349
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @param {Partial<LLMConfiguration>} override
|
|
353
|
+
*/
|
|
354
|
+
setSessionConfig (override) {
|
|
355
|
+
Object.assign(this._configuration, override);
|
|
356
|
+
}
|
|
350
357
|
|
|
351
358
|
/**
|
|
352
359
|
*
|