symposium 2.1.6 → 2.1.8
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/Symposium.js +3 -2
- package/package.json +1 -1
package/Symposium.js
CHANGED
|
@@ -19,7 +19,7 @@ export default class Symposium {
|
|
|
19
19
|
static async init(storage = null) {
|
|
20
20
|
const __filename = fileURLToPath(import.meta.url);
|
|
21
21
|
const __dirname = path.dirname(__filename);
|
|
22
|
-
const modelsPath = path.join(__dirname, '
|
|
22
|
+
const modelsPath = path.join(__dirname, 'Models');
|
|
23
23
|
|
|
24
24
|
const modelFiles = await fs.promises.readdir(modelsPath);
|
|
25
25
|
for (const file of modelFiles) {
|
|
@@ -144,10 +144,11 @@ export default class Symposium {
|
|
|
144
144
|
|
|
145
145
|
agent.doInitThread = async thread => {
|
|
146
146
|
if (options.model)
|
|
147
|
-
await thread.
|
|
147
|
+
await thread.setState({model: options.model})
|
|
148
148
|
await thread.addMessage('system', system);
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
+
await agent.init();
|
|
151
152
|
const thread = await agent.getThread();
|
|
152
153
|
return agent.message(prompt, thread);
|
|
153
154
|
}
|