chat event

This commit is contained in:
Nate 2024-11-26 20:28:20 -08:00
parent c84786def4
commit 56f4be2272

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