symposium 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/Summarizer.js +2 -2
  2. package/package.json +1 -1
package/Summarizer.js CHANGED
@@ -9,11 +9,11 @@ class Summarizer extends MemoryHandler {
9
9
  }
10
10
 
11
11
  async handle(conversation) {
12
- const model = this.agent.models.find(model => model.key === conversation.state.model);
12
+ const model = this.agent.models.find(model => model.name === conversation.state.model);
13
13
  if (!model)
14
14
  return conversation;
15
15
 
16
- const encoder = encoding_for_model(model.base_model);
16
+ const encoder = encoding_for_model(model.name);
17
17
  const tokens = this.countTokens(encoder, conversation);
18
18
  if (tokens >= model.tokens * this.threshold)
19
19
  return await this.summarize(encoder, conversation, model.tokens * this.summary_length);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "symposium",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "Agents",
6
6
  "main": "index.js",
7
7
  "scripts": {