wingbot 3.70.0 → 3.70.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.
- package/package.json +1 -1
- package/src/LLM.js +1 -1
- package/src/Responder.js +5 -2
package/package.json
CHANGED
package/src/LLM.js
CHANGED
|
@@ -123,7 +123,7 @@ class LLM {
|
|
|
123
123
|
async generate (session, options = {}) {
|
|
124
124
|
/** @type {LLMProviderOptions} */
|
|
125
125
|
const opts = {
|
|
126
|
-
model: this._configuration.model,
|
|
126
|
+
...(this._configuration.model && { model: this._configuration.model }),
|
|
127
127
|
...options
|
|
128
128
|
};
|
|
129
129
|
|
package/src/Responder.js
CHANGED
|
@@ -237,7 +237,9 @@ class Responder {
|
|
|
237
237
|
|
|
238
238
|
this.LLM_CTX_DEFAULT = 'default';
|
|
239
239
|
|
|
240
|
-
/** @
|
|
240
|
+
/** @typedef {PromptSource|Promise<string>} PromptContextItem */
|
|
241
|
+
|
|
242
|
+
/** @type {Map<string,PromptContextItem[]>} */
|
|
241
243
|
this._llmContext = new Map([
|
|
242
244
|
[this.LLM_CTX_DEFAULT, []]
|
|
243
245
|
]);
|
|
@@ -295,7 +297,8 @@ class Responder {
|
|
|
295
297
|
return [];
|
|
296
298
|
}
|
|
297
299
|
|
|
298
|
-
/** @
|
|
300
|
+
/** @typedef {Promise<string>} PromisedString */
|
|
301
|
+
/** @type {PromisedString[]} */
|
|
299
302
|
const promiseStrings = this._llmContext.get(contextType)
|
|
300
303
|
.map(async (p) => (typeof p === 'function' ? p(this) : p));
|
|
301
304
|
this._llmContext.set(contextType, promiseStrings);
|