diff --git a/src/types/TokenMetrics.ts b/src/types/TokenMetrics.ts index b1cb8f8..ec3c866 100644 --- a/src/types/TokenMetrics.ts +++ b/src/types/TokenMetrics.ts @@ -9,6 +9,7 @@ export interface TranscriptLine { message?: { usage?: TokenUsage }; isSidechain?: boolean; timestamp?: string; + isApiErrorMessage?: boolean; } export interface TokenMetrics { diff --git a/src/utils/jsonl.ts b/src/utils/jsonl.ts index 617f313..6a1ec4e 100644 --- a/src/utils/jsonl.ts +++ b/src/utils/jsonl.ts @@ -114,7 +114,8 @@ export async function getTokenMetrics(transcriptPath: string): Promise mostRecentTimestamp) { mostRecentTimestamp = entryTime;