telemetry: send a new llm event

This commit is contained in:
Pierre Tachoire committed 2026-06-04 17:35:26 +02:00
1 parent 495d207aad
commit 3f5d19d7dc
2 files changed
+37 -2

No files matched your search

+7
View File
@@ -1,4 +1,5 @@
const std = @import("std");
const zenai = @import("zenai");
const lp = @import("lightpanda");
const builtin = @import("builtin");
@@ -103,6 +104,7 @@ pub const Event = union(enum) {
run: void,
navigate: Navigate,
buffer_overflow: BufferOverflow,
llm: LLM,
const Navigate = struct {
tls: bool,
@@ -113,6 +115,11 @@ pub const Event = union(enum) {
const BufferOverflow = struct {
dropped: u32,
};
const LLM = struct {
provider: [:0]const u8,
model: ?[]const u8,
};
};
extern fn setenv(name: [*:0]u8, value: [*:0]u8, override: c_int) c_int;