MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / createEmptyTokenUsage

Function createEmptyTokenUsage

src/stores/aiChat.ts:222–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220}
221
222function createEmptyTokenUsage(): TokenUsage {
223 return { promptTokens: 0, completionTokens: 0, totalTokens: 0, cacheReadTokens: 0, cacheWriteTokens: 0 }
224}
225
226function toTokenUsage(data: { [K in keyof TokenUsage]?: number }): TokenUsage {
227 return {

Callers 3

createSessionStateFunction · 0.85
bindDisplayedBufferFunction · 0.85
startNewAIChatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected