Skip to content

Commit

Permalink
Merge pull request #3100 from continuedev/nate/chat-tel
Browse files Browse the repository at this point in the history
chat event
  • Loading branch information
sestinj authored Nov 27, 2024
2 parents 1dd407b + 56f4be2 commit a735eb9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,16 @@ export class Core {
if (config.experimental?.readResponseTTS && "completion" in next.value) {
void TTS.read(next.value?.completion);
}

void Telemetry.capture(
"chat",
{
model: model.model,
provider: model.providerName,
},
true,
);

return { done: true, content: next.value };
}

Expand Down

0 comments on commit a735eb9

Please sign in to comment.