Skip to content

Commit

Permalink
fall back if unsupported type
Browse files Browse the repository at this point in the history
  • Loading branch information
tcm390 committed Jan 3, 2025
1 parent 2365b54 commit 930f91e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export async function trimTokens(
);
}

elizaLogger.error(`Unsupported tokenizer type: ${tokenizerType}`);
elizaLogger.warn(`Unsupported tokenizer type: ${tokenizerType}`);
return truncateTiktoken("gpt-4o", context, maxTokens);
}

async function truncateAuto(
Expand Down

0 comments on commit 930f91e

Please sign in to comment.