MCPcopy Create free account
hub / github.com/code-with-antonio/nightcode / onFinish

Function onFinish

packages/server/src/routes/chat.ts:119–121  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

117 tools,
118 providerOptions: resolvedModel.providerOptions,
119 onFinish(event) {
120 completedUsage = event.totalUsage;
121 },
122 });
123
124 return result.toUIMessageStreamResponse<NightcodeUIMessage>({

Callers

nothing calls this directly

Calls 3

calculateCreditsForUsageFunction · 0.90
ingestAiUsageFunction · 0.90
hasPendingToolCallsFunction · 0.85

Tested by

no test coverage detected