File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,7 @@ These endpoints are designed to be compatible with the Anthropic Messages API.
201201| -------------------------------- | ------ | ------------------------------------------------------------ |
202202| ` POST /v1/messages ` | ` POST ` | Creates a model response for a given conversation. |
203203| ` POST /v1/messages/count_tokens ` | ` POST ` | Calculates the number of tokens for a given set of messages. |
204+ | ` POST /api/event_logging/batch ` | ` POST ` | Anthropic telemetry log endpoint (stub returning 200). |
204205
205206### Usage Monitoring Endpoints
206207
Original file line number Diff line number Diff line change 1+ import { Hono } from "hono"
2+
3+ export const eventLoggingRoutes = new Hono ( )
4+
5+ eventLoggingRoutes . post ( "/batch" , ( c ) => {
6+ return c . text ( "OK" , 200 )
7+ } )
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { logger } from "hono/logger"
44
55import { completionRoutes } from "./routes/chat-completions/route"
66import { embeddingRoutes } from "./routes/embeddings/route"
7+ import { eventLoggingRoutes } from "./routes/event-logging/route"
78import { messageRoutes } from "./routes/messages/route"
89import { modelRoutes } from "./routes/models/route"
910import { tokenRoute } from "./routes/token/route"
@@ -29,3 +30,4 @@ server.route("/v1/embeddings", embeddingRoutes)
2930
3031// Anthropic compatible endpoints
3132server . route ( "/v1/messages" , messageRoutes )
33+ server . route ( "/api/event_logging" , eventLoggingRoutes )
You can’t perform that action at this time.
0 commit comments