mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-18 14:08:21 +00:00
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.
5 lines
170 B
JavaScript
5 lines
170 B
JavaScript
const { createPromptResolveLimiter } = require('@librechat/api');
|
|
|
|
const promptResolveLimiter = createPromptResolveLimiter();
|
|
|
|
module.exports = { promptResolveLimiter };
|