Merge pull request #3100 from continuedev/nate/chat-tel

chat event
This commit is contained in:
Nate Sesti 2024-11-26 21:30:21 -08:00 • committed by GitHub
commit a735eb9b7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 };
}