@kb-labs/gateway-app 2.96.0 → 2.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +27 -27
package/dist/index.js
CHANGED
|
@@ -493,7 +493,12 @@ function registerUserAuthRoutes(app, deps) {
|
|
|
493
493
|
if (!auth) {
|
|
494
494
|
return reply.code(401).send({ error: "Unauthorized", message: "Not authenticated" });
|
|
495
495
|
}
|
|
496
|
-
return reply.send({
|
|
496
|
+
return reply.send({
|
|
497
|
+
userId: auth.userId,
|
|
498
|
+
namespaceId: auth.namespaceId,
|
|
499
|
+
email: auth.userId,
|
|
500
|
+
tenantId: auth.namespaceId
|
|
501
|
+
});
|
|
497
502
|
});
|
|
498
503
|
app.get("/auth/providers", {
|
|
499
504
|
schema: { tags: ["Auth"], summary: "List registered identity providers" }
|
|
@@ -1292,7 +1297,7 @@ async function resolveLLMForTier(tier) {
|
|
|
1292
1297
|
return llm;
|
|
1293
1298
|
}
|
|
1294
1299
|
function registerLLMGatewayRoutes(app, logger) {
|
|
1295
|
-
app.post("/
|
|
1300
|
+
app.post("/api/v1/llm/chat/completions", { schema: { tags: ["LLM"], summary: "OpenAI-compatible chat completions", hide: true } }, async (request, reply) => {
|
|
1296
1301
|
const auth = request.authContext;
|
|
1297
1302
|
if (!auth) {
|
|
1298
1303
|
return reply.code(401).send({ error: "Unauthorized" });
|