LibreChat/api/server/middleware/limiters/promptResolveLimiter.js
Atef Bellaaj 02613ce212
⛲ feat: Resolve Native and Langfuse Prompts by Source (#16909)
The prompt service dispatches resolvePrompt by group.source. A read-only
Langfuse adapter fetches the text prompt on each use, with no cache, after
a resolver checks the deployment gate, the tenant, prompt sync, the
connection and the stored source identity. GET
/api/prompts/groups/:groupId/resolve returns resolved content for native
and Langfuse groups, with a per-user limit set by rateLimits.promptResolve
(default 60 per minute). Agent-instruction links stay native only.
2026-10-24 13:47:52 +02:00

5 lines
170 B
JavaScript

const { createPromptResolveLimiter } = require('@librechat/api');
const promptResolveLimiter = createPromptResolveLimiter();
module.exports = { promptResolveLimiter };