mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 09:44:21 +01:00
zen: update logged endpoints
This commit is contained in:
@@ -9,7 +9,12 @@ export default {
|
|||||||
if (event.event.request.method !== "POST") continue
|
if (event.event.request.method !== "POST") continue
|
||||||
|
|
||||||
const url = new URL(event.event.request.url)
|
const url = new URL(event.event.request.url)
|
||||||
if (url.pathname !== "/zen/v1/chat/completions") return
|
if (
|
||||||
|
url.pathname !== "/zen/v1/chat/completions" &&
|
||||||
|
url.pathname !== "/zen/v1/messages" &&
|
||||||
|
url.pathname !== "/zen/v1/responses"
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
let metrics = {
|
let metrics = {
|
||||||
event_type: "completions",
|
event_type: "completions",
|
||||||
|
|||||||
Reference in New Issue
Block a user