refactor: refactor token counting logic in countTokens function

This commit is contained in:
dakai
2024-10-06 10:29:01 +08:00
parent 4acc742456
commit 586c4a493d
4 changed files with 69 additions and 33 deletions

View File

@@ -43,6 +43,7 @@ export interface MultimodalContent {
export interface UploadFile {
name: string;
url: string;
tokenCount?: string;
}
export interface RequestMessage {