goblin-agents 3.0.0 → 3.0.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/lib/llm/aiAgent.js +3 -3
- package/package.json +1 -1
package/lib/llm/aiAgent.js
CHANGED
|
@@ -613,9 +613,9 @@ class AiAgent extends Elf {
|
|
|
613
613
|
|
|
614
614
|
await this._loadProvider();
|
|
615
615
|
const contextMessages = this.state.messages[contextId] || [];
|
|
616
|
-
const context = this.state.contexts[contextId];
|
|
617
|
-
const reasoning = this.state.reasonings[contextId];
|
|
618
|
-
const model = this.state.models[contextId];
|
|
616
|
+
const context = this.state.contexts[contextId] || null;
|
|
617
|
+
const reasoning = this.state.reasonings[contextId] || this.state.reasoning;
|
|
618
|
+
const model = this.state.models[contextId] || this.state.model;
|
|
619
619
|
|
|
620
620
|
let systemPrompt = this.state.prompt || '';
|
|
621
621
|
if (context) {
|