feat(core): compact v2 session context (#30986)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export * as Token from "./token"
|
||||
|
||||
const CHARS_PER_TOKEN = 4
|
||||
|
||||
export const estimate = (input: string) => Math.max(0, Math.round(input.length / CHARS_PER_TOKEN))
|
||||
Reference in New Issue
Block a user