Skip to content

Commit

Permalink
use 4o as default model
Browse files Browse the repository at this point in the history
  • Loading branch information
tcm390 committed Jan 3, 2025
1 parent e97a948 commit 70d90ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/plugin-node/src/services/tokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export class TokenizationService
const tokenizerType = this.runtime.getSetting("TOKENIZER_TYPE");

if (!tokenizerModel || !tokenizerType) {
// Default to TikToken truncation using the "gpt-4o-mini" model if tokenizer settings are not defined
return this.truncateTiktoken("gpt-4o-mini", context, maxTokens);
// Default to TikToken truncation using the "gpt-4o" model if tokenizer settings are not defined
return this.truncateTiktoken("gpt-4o", context, maxTokens);
}

// Choose the truncation method based on tokenizer type
Expand All @@ -49,7 +49,7 @@ export class TokenizationService
);
}

console.error(`Unsupported tokenizer type: ${tokenizerType}`);
elizaLogger.error(`Unsupported tokenizer type: ${tokenizerType}`);
}

async truncateAuto(modelPath: string, context: string, maxTokens: number) {
Expand Down

0 comments on commit 70d90ab

Please sign in to comment.