mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-09 12:51:45 -04:00
telemetry: send a new llm event
This commit is contained in:
2 files changed
+37
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user