MCPcopy
hub / github.com/CodebuffAI/codebuff / POST

Function POST

web/src/app/api/v1/chat/completions/route.ts:31–46  ·  view source on GitHub ↗
(req: NextRequest)

Source from the content-addressed store, hash-verified

29}
30
31export async function POST(req: NextRequest) {
32 return postChatCompletions({
33 req,
34 getUserInfoFromApiKey,
35 logger,
36 loggerWithContext,
37 trackEvent,
38 getUserUsageData,
39 getAgentRunFromId,
40 fetch,
41 insertMessageBigquery,
42 insertChatCompletionTraceBigquery,
43 ensureSubscriberBlockGrant,
44 getUserPreferences,
45 })
46}

Callers

nothing calls this directly

Calls 1

postChatCompletionsFunction · 0.90

Tested by

no test coverage detected