v2.14.1 (#756)
Co-authored-by: Clément Drouin <clement.drouin@mistral.ai> Co-authored-by: Gauthier Guinet <43207538+Gguinet@users.noreply.github.com> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Stanislas <stanislas.lange@mistral.ai> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
3f8487f761
commit
702d0f412e
51 changed files with 2446 additions and 502 deletions
|
|
@ -15,6 +15,7 @@ from vibe.core.logger import logger
|
|||
from vibe.core.telemetry.build_metadata import build_base_metadata
|
||||
from vibe.core.telemetry.types import (
|
||||
AgentEntrypoint,
|
||||
AttachmentKind,
|
||||
EntrypointMetadata,
|
||||
TelemetryCallType,
|
||||
TeleportCompletedPayload,
|
||||
|
|
@ -303,6 +304,7 @@ class TelemetryClient:
|
|||
nb_prompt_chars: int,
|
||||
call_type: TelemetryCallType,
|
||||
message_id: str | None = None,
|
||||
attachment_counts: dict[AttachmentKind, int] | None = None,
|
||||
) -> None:
|
||||
payload = {
|
||||
"model": model,
|
||||
|
|
@ -312,6 +314,11 @@ class TelemetryClient:
|
|||
"call_source": "vibe_code",
|
||||
"call_type": call_type,
|
||||
"message_id": message_id,
|
||||
"attachment_counts": {
|
||||
kind.value: count
|
||||
for kind, count in (attachment_counts or {}).items()
|
||||
if count > 0
|
||||
},
|
||||
}
|
||||
self.send_telemetry_event("vibe.request_sent", payload)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue