Skip to content

Commit c96e838

Browse files
authoredNov 18, 2024
Merge pull request elizaOS#407 from ai16z/fixes
fix: Fixes
2 parents b4e0131 + afb04b5 commit c96e838

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed
 

‎packages/agent/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import fs from "fs";
2222
import readline from "readline";
2323
import yargs from "yargs";
2424
import { character } from "./character.ts";
25+
2526
export const wait = (minTime: number = 1000, maxTime: number = 3000) => {
2627
const waitTime =
2728
Math.floor(Math.random() * (maxTime - minTime + 1)) + minTime;

‎packages/client-discord/src/actions/summarize_conversation.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ const summarizeAction = {
249249

250250
let currentSummary = "";
251251

252-
const model = models[runtime.character.modelProvider];
253-
const chunkSize = model.settings.maxOutputTokens - 1000;
252+
const model = models[runtime.character.settings.model];
253+
const chunkSize = model.settings.maxContextLength - 1000;
254254

255255
const chunks = await splitChunks(formattedMemories, chunkSize, 0);
256256

‎packages/plugin-node/src/services/image.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class ImageDescriptionService extends Service {
4343
return;
4444
}
4545

46-
const model = models[runtime.character.modelProvider];
46+
const model = models[runtime?.character?.modelProvider];
4747

4848
if (model === models[ModelProviderName.LLAMALOCAL]) {
4949
this.modelId = "onnx-community/Florence-2-base-ft";

‎pnpm-lock.yaml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)