chat event
This commit is contained in:
parent
c84786def4
commit
56f4be2272
1 changed files with 10 additions and 0 deletions
10
core/core.ts
10
core/core.ts
|
|
@ -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 };
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue