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

Method getAIChatTokenUsage

src/services/ai/types.ts:147–147  ·  view source on GitHub ↗
(aiChatId: string)

Source from the content-addressed store, hash-verified

145 tokenUsage?: TokenUsageData
146 ): Promise<AIMessage>
147 getAIChatTokenUsage(aiChatId: string): Promise<TokenUsageData>
148 estimateContextTokens(
149 aiChatId: string
150 ): Promise<{ success: boolean; tokens: number; messageCount?: number; error?: string }>

Callers 4

registerAiChatRoutesFunction · 0.65
getAIChatTokenUsageFunction · 0.65
loadAIChatFunction · 0.65
editCurrentRoundOnlyFunction · 0.65

Implementers 1

FetchAIAdaptersrc/services/ai/fetch.ts

Calls

no outgoing calls

Tested by

no test coverage detected