diff options
| author | Frank <[email protected]> | 2026-02-10 17:44:00 -0500 |
|---|---|---|
| committer | Frank <[email protected]> | 2026-02-10 17:44:00 -0500 |
| commit | 39145b99e883935541c0580b2c5088e14b4413c4 (patch) | |
| tree | ec2b8d526cc942936e4d974c2e3730a1b3adcdc5 /packages/console/function | |
| parent | 0afa6e03a8cb8bbad9fb0dca84eb514381f3933d (diff) | |
| download | opencode-39145b99e883935541c0580b2c5088e14b4413c4.tar.gz opencode-39145b99e883935541c0580b2c5088e14b4413c4.zip | |
wip: zen
Diffstat (limited to 'packages/console/function')
| -rw-r--r-- | packages/console/function/src/log-processor.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/console/function/src/log-processor.ts b/packages/console/function/src/log-processor.ts index 0810201e7..111024c7f 100644 --- a/packages/console/function/src/log-processor.ts +++ b/packages/console/function/src/log-processor.ts @@ -18,7 +18,6 @@ export default { return let data = { - event_type: "completions", "cf.continent": event.event.request.cf?.continent, "cf.country": event.event.request.cf?.country, "cf.city": event.event.request.cf?.city, @@ -39,11 +38,11 @@ export default { const json = JSON.parse(message.slice(8)) data = { ...data, ...json } if ("llm.error.code" in json) { - events.push({ time, data: { ...data } }) + events.push({ event_type: "llm.error", time, data: { ...data } }) } } } - events.push({ time, data }) + events.push({ event_type: "completions", time, data }) console.log(JSON.stringify(data, null, 2)) const ret = await fetch("https://api.honeycomb.io/1/batch/zen", { |
