librechat-data-provider 0.8.504 → 0.8.506
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/{data-service-Dk-uLruo.js → data-service-CCdWvcRd.js} +109 -7
- package/dist/data-service-CCdWvcRd.js.map +1 -0
- package/dist/{data-service-BFGYAHRx.mjs → data-service-D7mtXwG5.mjs} +98 -8
- package/dist/data-service-D7mtXwG5.mjs.map +1 -0
- package/dist/index.js +187 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +181 -51
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +6 -1
- package/dist/react-query/index.js.map +1 -1
- package/dist/react-query/index.mjs +6 -1
- package/dist/react-query/index.mjs.map +1 -1
- package/dist/types/api-endpoints.d.ts +3 -0
- package/dist/types/bedrock.d.ts +20 -5
- package/dist/types/config.d.ts +643 -90
- package/dist/types/data-service.d.ts +4 -0
- package/dist/types/generate.d.ts +4 -0
- package/dist/types/keys.d.ts +4 -1
- package/dist/types/models.d.ts +34 -0
- package/dist/types/parsers.d.ts +2 -1
- package/dist/types/react-query/react-query-service.d.ts +2 -2
- package/dist/types/schemas.d.ts +94 -4
- package/dist/types/types/agents.d.ts +5 -0
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types/runs.d.ts +125 -0
- package/dist/types/types.d.ts +18 -1
- package/package.json +2 -2
- package/dist/data-service-BFGYAHRx.mjs.map +0 -1
- package/dist/data-service-Dk-uLruo.js.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,53 +1,12 @@
|
|
|
1
|
-
import { $ as permissionEntrySchema, $a as
|
|
1
|
+
import { $ as permissionEntrySchema, $a as feedbackTagKeySchema, $i as getModelKey, $n as MCP_USER_INPUT_FIELDS, $r as tModelSpecSchema, $t as balanceSchema, Aa as tPluginSchema, Ai as assistantSchema, An as modularEndpoints, Ar as fileConfigSchema, At as SKILL_SYNC_MAX_INTERVAL_MINUTES, B as MutationKeys, Ba as StepStatus, Bi as documentSupportedProviders, Bn as summarizationTriggerSchema, Br as megabyte, Bt as TTSProviders, Ca as tConversationSchema, Ci as Verbosity, Cn as initialModelsConfig, Cr as defaultSTTMimeTypes, Ct as MAX_SUBAGENT_RUN_CONFIGS, Da as tMessageSchema, Di as anthropicBaseSchema, Dn as messageFilterPiiSchema, Dr as excelFileTypes, Dt as RetentionMode, Ea as tExampleSchema, Ei as agentsSettings, En as memorySchema, Er as endpointFileConfigSchema, Et as RerankerTypes, F as request_default, Fa as AssistantStreamEvents, Fi as compactAgentsSchema, Fn as resolveEndpointType, Fr as imageTypeMapping, Ft as SearchCategories, G as PrincipalType, Ga as hostImageIdSuffix, Gi as eReasoningParameterFormatSchema, Gn as validateVisionModel, Gr as supportedMimeTypes, Gt as allowedAddressesSchema, H as AccessRoleIds, Ha as actionDelimiter, Hi as eImageDetailSchema, Hn as transactionsSchema, Hr as mimeTypeAliases, Ht as ViolationTypes, I as getTokenHeader, Ia as EToolResources, Ii as compactAssistantSchema, In as skillSyncConfigSchema, Ir as inferMimeType, It as SearchProviders, J as accessRoleToPermBits, Ja as FEEDBACK_RATINGS, Ji as eThinkingDisplaySchema, Jn as visionModels, Jr as videoMimeTypes, Jt as assistantEndpointSchema, K as ResourceType, Ka as hostImageNamePrefix, Ki as eReasoningResponseKeySchema, Kn as vertexAISchema, Kr as supportsFiles, Kt as alternateName, L as setAcceptLanguageHeader, La as FilePurpose, Li as compactGoogleSchema, Ln as skillSyncGitHubSourceSchema, Lr as isBedrockDocumentType, Lt as SettingsTabValues, Ma as tQueryParamsSchema, Mi as cacheSubsetProviders, Mn as paramDefinitionSchema, Mr as getEndpointFileConfig, Mt as STTProviders, Na as tSharedLinkSchema, Ni as coerceNumber, Nn as providerEndpointMap, Nr as imageExtRegex, Nt as SafeSearchTypes, Oa as tModelSpecPresetSchema, Oi as anthropicSchema, On as messageFilterSchema, Or as excelMimeTypes, Ot as SKILL_SYNC_DEFAULT_DISCOVERY_DEPTH, Pa as AnnotationTypes, Pi as compactAgentsBaseSchema, Pn as rateLimitSchema, Pr as imageMimeTypes, Pt as ScraperProviders, Q as permBitsToAccessLevel, Qa as feedbackSchema, Qi as extendedModelEndpointSchema, Qn as MCPServersSchema, Qr as specsConfigSchema, Qt as azureGroupSchema, R as setTokenHeader, Ra as MessageContentTypes, Ri as defaultAgentFormValues, Rn as specialVariables, Rr as isPermissiveMimeConfig, Rt as SettingsViews, Sa as tBannerSchema, Si as ThinkingLevel, Sn as imageGenTools, Sr as defaultOCRMimeTypes, St as MAX_SUBAGENT_GRAPH_NODES, Ta as tConvoUpdateSchema, Ti as agentsSchema, Tn as isRemoteOidcUrlAllowed, Tr as documentParserMimeTypes, Tt as RateLimitPrefix, U as PermissionBits, Ua as actionDomainSeparator, Ui as eModelEndpointSchema, Un as turnstileOptionsSchema, Ur as retrievalMimeTypes, Ut as VisionModes, V as QueryKeys, Va as Tools, Vi as eAnthropicEffortSchema, Vn as supportsBalanceCheck, Vr as mergeFileConfig, Vt as Time, W as PrincipalModel, Wa as defaultOrderQuery, Wi as eReasoningEffortSchema, Wn as turnstileSchema, Wr as retrievalMimeTypesList, Wt as agentsEndpointSchema, X as getResourcePermissionsResponseSchema, Xa as FEEDBACK_TAGS, Xi as eVerbositySchema, Xn as MCPOptionsSchema, Xr as getRefillEligibilityDate, Xt as azureEndpointSchema, Y as effectivePermissionsResponseSchema, Ya as FEEDBACK_REASON_KEYS, Yi as eThinkingLevelSchema, Yn as webSearchSchema, Yr as REFILL_INTERVAL_UNITS, Yt as azureBaseSchema, Z as hasPermissions, Za as feedbackRatingSchema, Zi as endpointSettings, Zn as MCPServerUserInputSchema, Zr as modelSpecSubagentsSchema, Zt as azureGroupConfigsSchema, _a as openAISchema, _i as ReasoningEffort, _n as fileStrategiesSchema, _r as bedrockDocumentFormats, _t as ImageDetailCost, a as data_service_exports, aa as imageDetailNumeric, ai as generateGoogleSchema, an as configSchema, ao as extractVariableName, ar as AuthorizationTypeEnum, at as AuthKeys, ba as paramEndpoints, bi as ReasoningSummary, bn as getEndpointField, br as codeTypeMapping, bt as LocalStorageKeys, ca as isAgentsEndpoint, ci as AnthropicEffort, cn as defaultAssistantsVersion, cr as FileSources, ct as Capabilities, da as isImageVisionTool, di as BedrockReasoningConfig, dn as defaultRetrievalModels, dr as buildLoginRedirectUrl, dt as DEFAULT_MEMORY_MAX_INPUT_TOKENS, ea as getSettingsKeys, ei as MAX_SUBAGENTS, en as baseEndpointSchema, eo as getTagByKey, er as SSEOptionsSchema, et as principalSchema, fa as isMythosClassModel, fi as EModelEndpoint, fn as defaultSocialLogins, fr as loginPage, ft as EImageOutputType, ga as openAIBaseSchema, gi as Providers, gn as fileStorageSchema, gr as bedrockDocumentExtensions, gt as ForkOptions, ha as isUUID, hi as MYTHOS_CLASS_FAMILIES, hn as fileSourceSchema, hr as audioMimeTypes, ht as FetchTokenConfig, ia as googleSettings, ii as generateDynamicSchema, in as cloudfrontConfigSchema, io as extractEnvVariable, ir as AuthTypeEnum, it as AgentCapabilities, ja as tPresetSchema, ji as authTypeSchema, jn as ocrSchema, jr as fullMimeTypesList, jt as SKILL_SYNC_MIN_INTERVAL_MINUTES, ka as tPluginAuthConfigSchema, ki as anthropicSettings, kn as modelConfigSchema, kr as fileConfig, kt as SKILL_SYNC_MAX_DISCOVERY_DEPTH, la as isAssistantsEndpoint, li as AuthType, ln as defaultEndpoints, lr as checkOpenAIStorage, lt as CohereConstants, ma as isParamEndpoint, mi as ImageVisionTool, mn as excludedKeys, mr as applicationMimeTypes, mt as ErrorTypes, na as googleGenConfigSchema, ni as OptionTypes, nn as bedrockGuardrailConfigSchema, no as toMinimalFeedback, nr as StreamableHTTPOptionsSchema, nt as updateResourcePermissionsRequestSchema, oa as imageDetailValue, oi as generateOpenAISchema, on as contextPruningSchema, oo as isSensitiveEnvVar, or as TokenExchangeMethodEnum, ot as BASE_ONLY_CONFIG_SECTIONS, pa as isOpenAILikeProvider, pi as ImageDetail, pn as endpointSchema, pr as registerPage, pt as EndpointURLs, q as accessRoleSchema, qa as isActionTool, qi as eReasoningSummarySchema, qn as vertexModelConfigSchema, qr as textMimeTypes, qt as anthropicEndpointSchema, ra as googleSchema, ri as SettingTypes, rn as bedrockModels, ro as envVarRegex, rr as WebSocketOptionsSchema, rt as updateResourcePermissionsResponseSchema, sa as inputTokensIncludesCache, si as validateSettingDefinitions, sn as defaultAgentCapabilities, so as normalizeEndpointName, sr as FileContext, st as CacheKeys, ta as googleBaseSchema, ti as ComponentTypes, tn as bedrockEndpointSchema, to as getTagsForRating, tr as StdioOptionsSchema, tt as resourcePermissionsResponseSchema, ua as isDocumentSupportedProvider, ui as BedrockProviders, un as defaultModels, ur as apiBaseUrl, ut as Constants, va as openAISettings, vi as ReasoningParameterFormat, vn as getConfigDefaults, vr as codeInterpreterMimeTypes, vt as InfiniteCollections, wa as tConversationTagSchema, wi as agentsBaseSchema, wn as interfaceSchema, wr as defaultTextMimeTypes, wt as OCRStrategy, xa as removeNullishValues, xi as ThinkingDisplay, xn as getSchemaDefaults, xr as convertStringsToRegex, xt as MAX_SUBAGENT_DEPTH, ya as openRouterSchema, yi as ReasoningResponseKey, yn as getDefaultParamsEndpoint, yr as codeInterpreterMimeTypesList, yt as KnownEndpoints, z as DynamicQueryKeys, za as RunStatus, zi as defaultAssistantFormValues, zn as summarizationConfigSchema, zr as mbToBytes, zt as SystemCategories } from "./data-service-D7mtXwG5.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import dayjs from "dayjs";
|
|
4
|
+
import utc from "dayjs/plugin/utc";
|
|
5
|
+
import timezonePlugin from "dayjs/plugin/timezone";
|
|
4
6
|
import axios from "axios";
|
|
5
7
|
import { URL } from "url";
|
|
6
8
|
import crypto from "crypto";
|
|
7
9
|
import { load } from "js-yaml";
|
|
8
|
-
//#region src/types/runs.ts
|
|
9
|
-
let ContentTypes = /* @__PURE__ */ function(ContentTypes) {
|
|
10
|
-
ContentTypes["TEXT"] = "text";
|
|
11
|
-
ContentTypes["THINK"] = "think";
|
|
12
|
-
ContentTypes["TEXT_DELTA"] = "text_delta";
|
|
13
|
-
ContentTypes["TOOL_CALL"] = "tool_call";
|
|
14
|
-
ContentTypes["IMAGE_FILE"] = "image_file";
|
|
15
|
-
ContentTypes["IMAGE_URL"] = "image_url";
|
|
16
|
-
ContentTypes["VIDEO_URL"] = "video_url";
|
|
17
|
-
ContentTypes["INPUT_AUDIO"] = "input_audio";
|
|
18
|
-
ContentTypes["AGENT_UPDATE"] = "agent_update";
|
|
19
|
-
ContentTypes["SUMMARY"] = "summary";
|
|
20
|
-
ContentTypes["ERROR"] = "error";
|
|
21
|
-
return ContentTypes;
|
|
22
|
-
}({});
|
|
23
|
-
let StepTypes = /* @__PURE__ */ function(StepTypes) {
|
|
24
|
-
StepTypes["TOOL_CALLS"] = "tool_calls";
|
|
25
|
-
StepTypes["MESSAGE_CREATION"] = "message_creation";
|
|
26
|
-
return StepTypes;
|
|
27
|
-
}({});
|
|
28
|
-
let ToolCallTypes = /* @__PURE__ */ function(ToolCallTypes) {
|
|
29
|
-
ToolCallTypes["FUNCTION"] = "function";
|
|
30
|
-
ToolCallTypes["RETRIEVAL"] = "retrieval";
|
|
31
|
-
ToolCallTypes["FILE_SEARCH"] = "file_search";
|
|
32
|
-
ToolCallTypes["CODE_INTERPRETER"] = "code_interpreter";
|
|
33
|
-
ToolCallTypes["TOOL_CALL"] = "tool_call";
|
|
34
|
-
return ToolCallTypes;
|
|
35
|
-
}({});
|
|
36
|
-
/** Event names dispatched by the agent graph and consumed by step handlers. */
|
|
37
|
-
let StepEvents = /* @__PURE__ */ function(StepEvents) {
|
|
38
|
-
StepEvents["ON_RUN_STEP"] = "on_run_step";
|
|
39
|
-
StepEvents["ON_AGENT_UPDATE"] = "on_agent_update";
|
|
40
|
-
StepEvents["ON_MESSAGE_DELTA"] = "on_message_delta";
|
|
41
|
-
StepEvents["ON_REASONING_DELTA"] = "on_reasoning_delta";
|
|
42
|
-
StepEvents["ON_RUN_STEP_DELTA"] = "on_run_step_delta";
|
|
43
|
-
StepEvents["ON_RUN_STEP_COMPLETED"] = "on_run_step_completed";
|
|
44
|
-
StepEvents["ON_SUMMARIZE_START"] = "on_summarize_start";
|
|
45
|
-
StepEvents["ON_SUMMARIZE_DELTA"] = "on_summarize_delta";
|
|
46
|
-
StepEvents["ON_SUMMARIZE_COMPLETE"] = "on_summarize_complete";
|
|
47
|
-
StepEvents["ON_SUBAGENT_UPDATE"] = "on_subagent_update";
|
|
48
|
-
return StepEvents;
|
|
49
|
-
}({});
|
|
50
|
-
//#endregion
|
|
51
10
|
//#region src/bedrock.ts
|
|
52
11
|
const DEFAULT_ENABLED_MAX_TOKENS = 8192;
|
|
53
12
|
const DEFAULT_THINKING_BUDGET = 2e3;
|
|
@@ -207,6 +166,7 @@ const bedrockInputSchema = tConversationSchema.pick({
|
|
|
207
166
|
thinkingDisplay: true,
|
|
208
167
|
reasoning_effort: true,
|
|
209
168
|
promptCache: true,
|
|
169
|
+
promptCacheTtl: true,
|
|
210
170
|
topK: true,
|
|
211
171
|
additionalModelRequestFields: true
|
|
212
172
|
}).transform((obj) => {
|
|
@@ -245,6 +205,7 @@ const bedrockInputParser = tConversationSchema.pick({
|
|
|
245
205
|
thinkingDisplay: true,
|
|
246
206
|
reasoning_effort: true,
|
|
247
207
|
promptCache: true,
|
|
208
|
+
promptCacheTtl: true,
|
|
248
209
|
topK: true,
|
|
249
210
|
additionalModelRequestFields: true
|
|
250
211
|
}).catchall(z.any()).transform((data) => {
|
|
@@ -265,7 +226,8 @@ const bedrockInputParser = tConversationSchema.pick({
|
|
|
265
226
|
"temperature",
|
|
266
227
|
"topP",
|
|
267
228
|
"stop",
|
|
268
|
-
"promptCache"
|
|
229
|
+
"promptCache",
|
|
230
|
+
"promptCacheTtl"
|
|
269
231
|
];
|
|
270
232
|
const additionalFields = {};
|
|
271
233
|
const typedData = data;
|
|
@@ -371,6 +333,12 @@ const bedrockInputParser = tConversationSchema.pick({
|
|
|
371
333
|
if (typeof typedData.model === "string" && (typedData.model.includes("claude") || typedData.model.includes("nova"))) {
|
|
372
334
|
if (typedData.promptCache === void 0) typedData.promptCache = true;
|
|
373
335
|
} else if (typedData.promptCache === true) typedData.promptCache = void 0;
|
|
336
|
+
/**
|
|
337
|
+
* A cache TTL is meaningless without caching — tie it to promptCache. When
|
|
338
|
+
* caching is off or unsupported for the model (cleared above), drop the TTL
|
|
339
|
+
* so an unsupported `1h` is never sent on a non-caching Bedrock request.
|
|
340
|
+
*/
|
|
341
|
+
if (typedData.promptCache !== true) typedData.promptCacheTtl = void 0;
|
|
374
342
|
if (Object.keys(additionalFields).length > 0) typedData.additionalModelRequestFields = {
|
|
375
343
|
...typedData.additionalModelRequestFields || {},
|
|
376
344
|
...additionalFields
|
|
@@ -428,7 +396,100 @@ const bedrockOutputParser = (data) => {
|
|
|
428
396
|
return result;
|
|
429
397
|
};
|
|
430
398
|
//#endregion
|
|
399
|
+
//#region src/types/runs.ts
|
|
400
|
+
let ContentTypes = /* @__PURE__ */ function(ContentTypes) {
|
|
401
|
+
ContentTypes["TEXT"] = "text";
|
|
402
|
+
ContentTypes["THINK"] = "think";
|
|
403
|
+
ContentTypes["TEXT_DELTA"] = "text_delta";
|
|
404
|
+
ContentTypes["TOOL_CALL"] = "tool_call";
|
|
405
|
+
ContentTypes["IMAGE_FILE"] = "image_file";
|
|
406
|
+
ContentTypes["IMAGE_URL"] = "image_url";
|
|
407
|
+
ContentTypes["VIDEO_URL"] = "video_url";
|
|
408
|
+
ContentTypes["INPUT_AUDIO"] = "input_audio";
|
|
409
|
+
ContentTypes["AGENT_UPDATE"] = "agent_update";
|
|
410
|
+
ContentTypes["SUMMARY"] = "summary";
|
|
411
|
+
ContentTypes["ERROR"] = "error";
|
|
412
|
+
return ContentTypes;
|
|
413
|
+
}({});
|
|
414
|
+
let StepTypes = /* @__PURE__ */ function(StepTypes) {
|
|
415
|
+
StepTypes["TOOL_CALLS"] = "tool_calls";
|
|
416
|
+
StepTypes["MESSAGE_CREATION"] = "message_creation";
|
|
417
|
+
return StepTypes;
|
|
418
|
+
}({});
|
|
419
|
+
let ToolCallTypes = /* @__PURE__ */ function(ToolCallTypes) {
|
|
420
|
+
ToolCallTypes["FUNCTION"] = "function";
|
|
421
|
+
ToolCallTypes["RETRIEVAL"] = "retrieval";
|
|
422
|
+
ToolCallTypes["FILE_SEARCH"] = "file_search";
|
|
423
|
+
ToolCallTypes["CODE_INTERPRETER"] = "code_interpreter";
|
|
424
|
+
ToolCallTypes["TOOL_CALL"] = "tool_call";
|
|
425
|
+
return ToolCallTypes;
|
|
426
|
+
}({});
|
|
427
|
+
/** Event names dispatched by the agent graph and consumed by step handlers. */
|
|
428
|
+
let StepEvents = /* @__PURE__ */ function(StepEvents) {
|
|
429
|
+
StepEvents["ON_RUN_STEP"] = "on_run_step";
|
|
430
|
+
StepEvents["ON_AGENT_UPDATE"] = "on_agent_update";
|
|
431
|
+
StepEvents["ON_MESSAGE_DELTA"] = "on_message_delta";
|
|
432
|
+
StepEvents["ON_REASONING_DELTA"] = "on_reasoning_delta";
|
|
433
|
+
StepEvents["ON_RUN_STEP_DELTA"] = "on_run_step_delta";
|
|
434
|
+
StepEvents["ON_RUN_STEP_COMPLETED"] = "on_run_step_completed";
|
|
435
|
+
StepEvents["ON_SUMMARIZE_START"] = "on_summarize_start";
|
|
436
|
+
StepEvents["ON_SUMMARIZE_DELTA"] = "on_summarize_delta";
|
|
437
|
+
StepEvents["ON_SUMMARIZE_COMPLETE"] = "on_summarize_complete";
|
|
438
|
+
StepEvents["ON_SUBAGENT_UPDATE"] = "on_subagent_update";
|
|
439
|
+
return StepEvents;
|
|
440
|
+
}({});
|
|
441
|
+
/** Token-tracking event names streamed to the client (separate from StepEvents dispatch). */
|
|
442
|
+
let UsageEvents = /* @__PURE__ */ function(UsageEvents) {
|
|
443
|
+
UsageEvents["ON_CONTEXT_USAGE"] = "on_context_usage";
|
|
444
|
+
UsageEvents["ON_TOKEN_USAGE"] = "on_token_usage";
|
|
445
|
+
return UsageEvents;
|
|
446
|
+
}({});
|
|
447
|
+
/**
|
|
448
|
+
* Full prompt token count for one completed model call — the EXACT context the
|
|
449
|
+
* model saw, provider-aware: additive providers (Bedrock) report `input_tokens`
|
|
450
|
+
* excluding cache, so cache reads/writes are added back; subset providers
|
|
451
|
+
* (Anthropic, OpenAI, …) already fold cache into `input_tokens`. When the
|
|
452
|
+
* provider is absent (custom/OpenAI-compatible payloads), fall back to the same
|
|
453
|
+
* magnitude heuristic `normalizeUsageUnits` uses — cache ≤ input means it's
|
|
454
|
+
* already included — so cached events aren't re-inflated. The ground truth the
|
|
455
|
+
* gauge reconciles its calibrated estimate to.
|
|
456
|
+
*/
|
|
457
|
+
const promptTokensFromUsage = (event) => {
|
|
458
|
+
const input = event.input_tokens ?? 0;
|
|
459
|
+
const details = event.input_token_details ?? {};
|
|
460
|
+
const cacheRead = details.cache_read ?? 0;
|
|
461
|
+
const cacheCreation = details.cache_creation ?? 0;
|
|
462
|
+
return (event.provider != null ? inputTokensIncludesCache(event.provider) : cacheRead + cacheCreation <= input) ? input : input + cacheRead + cacheCreation;
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* Reconciles a pre-invoke context snapshot's CALIBRATED estimate to a call's
|
|
466
|
+
* ACTUAL prompt tokens. The SDK's calibration multiplier scales only
|
|
467
|
+
* `messageTokens` (instructions/summary are raw tiktoken counts), and it can
|
|
468
|
+
* over-shoot badly when a provider injects server-side content the SDK never
|
|
469
|
+
* counted (e.g. Anthropic web search) — pinning the gauge several× too high and
|
|
470
|
+
* persisting it. Trust the provider's own prompt count: keep the raw
|
|
471
|
+
* instruction/summary rows, set `messageTokens` to the remainder, and recompute
|
|
472
|
+
* the free space. No-op when `promptTokens` is unusable.
|
|
473
|
+
*/
|
|
474
|
+
const reconcileContextUsage = (snapshot, promptTokens) => {
|
|
475
|
+
if (!Number.isFinite(promptTokens) || promptTokens <= 0) return snapshot;
|
|
476
|
+
const { breakdown } = snapshot;
|
|
477
|
+
const budget = snapshot.contextBudget ?? breakdown.maxContextTokens;
|
|
478
|
+
const nonMessageTokens = (breakdown.instructionTokens ?? 0) + (breakdown.summaryTokens ?? 0);
|
|
479
|
+
const messageTokens = Math.max(0, promptTokens - nonMessageTokens);
|
|
480
|
+
return {
|
|
481
|
+
...snapshot,
|
|
482
|
+
breakdown: {
|
|
483
|
+
...breakdown,
|
|
484
|
+
messageTokens
|
|
485
|
+
},
|
|
486
|
+
remainingContextTokens: budget != null ? Math.max(0, budget - promptTokens) : snapshot.remainingContextTokens
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
//#endregion
|
|
431
490
|
//#region src/parsers.ts
|
|
491
|
+
dayjs.extend(utc);
|
|
492
|
+
dayjs.extend(timezonePlugin);
|
|
432
493
|
const endpointSchemas = {
|
|
433
494
|
["openAI"]: openAISchema,
|
|
434
495
|
["azureOpenAI"]: openAISchema,
|
|
@@ -627,10 +688,24 @@ function findLastSeparatorIndex(text, separators = SEPARATORS) {
|
|
|
627
688
|
}
|
|
628
689
|
return lastIndex;
|
|
629
690
|
}
|
|
630
|
-
|
|
691
|
+
/**
|
|
692
|
+
* Anchors a dayjs instant to the user's IANA timezone when one is supplied,
|
|
693
|
+
* so local-time special vars reflect the user's wall clock rather than the
|
|
694
|
+
* server's. Falls back to the original instant for missing or invalid zones.
|
|
695
|
+
*/
|
|
696
|
+
function applyTimezone(value, timezone) {
|
|
697
|
+
if (!timezone) return value;
|
|
698
|
+
try {
|
|
699
|
+
const zoned = value.tz(timezone);
|
|
700
|
+
return zoned.isValid() ? zoned : value;
|
|
701
|
+
} catch {
|
|
702
|
+
return value;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
function replaceSpecialVars({ text, user, now: inputNow, timezone }) {
|
|
631
706
|
let result = text;
|
|
632
707
|
if (!result) return result;
|
|
633
|
-
const now = inputNow != null ? dayjs(inputNow) : dayjs();
|
|
708
|
+
const now = applyTimezone(inputNow != null ? dayjs(inputNow) : dayjs(), timezone);
|
|
634
709
|
const weekdayName = now.format("dddd");
|
|
635
710
|
const currentDate = now.format("YYYY-MM-DD");
|
|
636
711
|
result = result.replace(/{{\s*current_date\s*}}/gi, `${currentDate} (${weekdayName})`);
|
|
@@ -4982,6 +5057,14 @@ function validateAndParseOpenAPISpec(specString) {
|
|
|
4982
5057
|
}
|
|
4983
5058
|
//#endregion
|
|
4984
5059
|
//#region src/createPayload.ts
|
|
5060
|
+
/** Resolves the browser's IANA timezone so the server can localize prompt variables. */
|
|
5061
|
+
function getUserTimezone() {
|
|
5062
|
+
try {
|
|
5063
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone || void 0;
|
|
5064
|
+
} catch {
|
|
5065
|
+
return;
|
|
5066
|
+
}
|
|
5067
|
+
}
|
|
4985
5068
|
function createPayload(submission) {
|
|
4986
5069
|
const { isEdited, addedConvo, userMessage, isContinued, isTemporary, isRegenerate, conversation, editedContent, ephemeralAgent, endpointOption, manualSkills } = submission;
|
|
4987
5070
|
const { conversationId } = tConvoUpdateSchema.parse(conversation);
|
|
@@ -5000,7 +5083,8 @@ function createPayload(submission) {
|
|
|
5000
5083
|
conversationId,
|
|
5001
5084
|
isContinued: !!(isEdited && isContinued),
|
|
5002
5085
|
ephemeralAgent: isAssistantsEndpoint(endpoint) ? void 0 : ephemeralAgent,
|
|
5003
|
-
manualSkills: isAssistantsEndpoint(endpoint) ? void 0 : manualSkills
|
|
5086
|
+
manualSkills: isAssistantsEndpoint(endpoint) ? void 0 : manualSkills,
|
|
5087
|
+
timezone: getUserTimezone()
|
|
5004
5088
|
};
|
|
5005
5089
|
return {
|
|
5006
5090
|
server,
|
|
@@ -5404,6 +5488,22 @@ const anthropic = {
|
|
|
5404
5488
|
showDefault: false,
|
|
5405
5489
|
columnSpan: 2
|
|
5406
5490
|
},
|
|
5491
|
+
promptCacheTtl: {
|
|
5492
|
+
key: "promptCacheTtl",
|
|
5493
|
+
label: "com_endpoint_prompt_cache_ttl",
|
|
5494
|
+
labelCode: true,
|
|
5495
|
+
description: "com_endpoint_anthropic_prompt_cache_ttl",
|
|
5496
|
+
descriptionCode: true,
|
|
5497
|
+
type: "enum",
|
|
5498
|
+
default: anthropicSettings.promptCacheTtl.default,
|
|
5499
|
+
options: ["5m", "1h"],
|
|
5500
|
+
component: "dropdown",
|
|
5501
|
+
optionType: "conversation",
|
|
5502
|
+
showDefault: false,
|
|
5503
|
+
placeholder: "com_endpoint_prompt_cache_ttl_default",
|
|
5504
|
+
placeholderCode: true,
|
|
5505
|
+
columnSpan: 2
|
|
5506
|
+
},
|
|
5407
5507
|
thinking: {
|
|
5408
5508
|
key: "thinking",
|
|
5409
5509
|
label: "com_endpoint_thinking",
|
|
@@ -5559,6 +5659,22 @@ const bedrock = {
|
|
|
5559
5659
|
showDefault: false,
|
|
5560
5660
|
columnSpan: 2
|
|
5561
5661
|
},
|
|
5662
|
+
promptCacheTtl: {
|
|
5663
|
+
key: "promptCacheTtl",
|
|
5664
|
+
label: "com_endpoint_prompt_cache_ttl",
|
|
5665
|
+
labelCode: true,
|
|
5666
|
+
description: "com_endpoint_anthropic_prompt_cache_ttl",
|
|
5667
|
+
descriptionCode: true,
|
|
5668
|
+
type: "enum",
|
|
5669
|
+
default: void 0,
|
|
5670
|
+
options: ["5m", "1h"],
|
|
5671
|
+
component: "dropdown",
|
|
5672
|
+
optionType: "conversation",
|
|
5673
|
+
showDefault: false,
|
|
5674
|
+
placeholder: "com_endpoint_prompt_cache_ttl_default",
|
|
5675
|
+
placeholderCode: true,
|
|
5676
|
+
columnSpan: 2
|
|
5677
|
+
},
|
|
5562
5678
|
reasoning_effort: {
|
|
5563
5679
|
key: "reasoning_effort",
|
|
5564
5680
|
label: "com_endpoint_reasoning_effort",
|
|
@@ -5812,7 +5928,11 @@ const openAI = [
|
|
|
5812
5928
|
openAIParams.disableStreaming,
|
|
5813
5929
|
librechat.fileTokenLimit
|
|
5814
5930
|
];
|
|
5815
|
-
const openRouter = [
|
|
5931
|
+
const openRouter = [
|
|
5932
|
+
...openAI,
|
|
5933
|
+
anthropic.promptCache,
|
|
5934
|
+
anthropic.promptCacheTtl
|
|
5935
|
+
];
|
|
5816
5936
|
const openAICol1 = [
|
|
5817
5937
|
baseDefinitions.model,
|
|
5818
5938
|
librechat.modelLabel,
|
|
@@ -5846,6 +5966,7 @@ const anthropicConfig = [
|
|
|
5846
5966
|
anthropic.topK,
|
|
5847
5967
|
librechat.resendFiles,
|
|
5848
5968
|
anthropic.promptCache,
|
|
5969
|
+
anthropic.promptCacheTtl,
|
|
5849
5970
|
anthropic.thinking,
|
|
5850
5971
|
anthropic.thinkingBudget,
|
|
5851
5972
|
anthropic.effort,
|
|
@@ -5866,6 +5987,7 @@ const anthropicCol2 = [
|
|
|
5866
5987
|
anthropic.topK,
|
|
5867
5988
|
librechat.resendFiles,
|
|
5868
5989
|
anthropic.promptCache,
|
|
5990
|
+
anthropic.promptCacheTtl,
|
|
5869
5991
|
anthropic.thinking,
|
|
5870
5992
|
anthropic.thinkingBudget,
|
|
5871
5993
|
anthropic.effort,
|
|
@@ -5885,6 +6007,7 @@ const bedrockAnthropic = [
|
|
|
5885
6007
|
librechat.resendFiles,
|
|
5886
6008
|
bedrock.region,
|
|
5887
6009
|
bedrock.promptCache,
|
|
6010
|
+
bedrock.promptCacheTtl,
|
|
5888
6011
|
anthropic.thinking,
|
|
5889
6012
|
anthropic.thinkingBudget,
|
|
5890
6013
|
anthropic.effort,
|
|
@@ -5922,6 +6045,7 @@ const bedrockGeneral = [
|
|
|
5922
6045
|
librechat.resendFiles,
|
|
5923
6046
|
bedrock.region,
|
|
5924
6047
|
bedrock.promptCache,
|
|
6048
|
+
bedrock.promptCacheTtl,
|
|
5925
6049
|
librechat.fileTokenLimit
|
|
5926
6050
|
];
|
|
5927
6051
|
const bedrockAnthropicCol1 = [
|
|
@@ -5939,6 +6063,7 @@ const bedrockAnthropicCol2 = [
|
|
|
5939
6063
|
librechat.resendFiles,
|
|
5940
6064
|
bedrock.region,
|
|
5941
6065
|
bedrock.promptCache,
|
|
6066
|
+
bedrock.promptCacheTtl,
|
|
5942
6067
|
anthropic.thinking,
|
|
5943
6068
|
anthropic.thinkingBudget,
|
|
5944
6069
|
anthropic.effort,
|
|
@@ -5985,6 +6110,7 @@ const bedrockGeneralCol2 = [
|
|
|
5985
6110
|
librechat.resendFiles,
|
|
5986
6111
|
bedrock.region,
|
|
5987
6112
|
bedrock.promptCache,
|
|
6113
|
+
bedrock.promptCacheTtl,
|
|
5988
6114
|
librechat.fileTokenLimit
|
|
5989
6115
|
];
|
|
5990
6116
|
const bedrockZAI = [
|
|
@@ -6074,7 +6200,11 @@ const presetSettings = {
|
|
|
6074
6200
|
["custom"]: openAIColumns,
|
|
6075
6201
|
["openrouter"]: {
|
|
6076
6202
|
col1: openAICol1,
|
|
6077
|
-
col2: [
|
|
6203
|
+
col2: [
|
|
6204
|
+
...openAICol2,
|
|
6205
|
+
anthropic.promptCache,
|
|
6206
|
+
anthropic.promptCacheTtl
|
|
6207
|
+
]
|
|
6078
6208
|
},
|
|
6079
6209
|
["anthropic"]: {
|
|
6080
6210
|
col1: anthropicCol1,
|
|
@@ -6156,6 +6286,6 @@ const CODE_ENV_KINDS = [
|
|
|
6156
6286
|
"user"
|
|
6157
6287
|
];
|
|
6158
6288
|
//#endregion
|
|
6159
|
-
export { AccessRoleIds, ActionRequest, AgentCapabilities, AnnotationTypes, AnthropicEffort, ArtifactModes, AssistantStreamEvents, AuthKeys, AuthType, AuthTypeEnum, AuthorizationTypeEnum, BASE_ONLY_CONFIG_SECTIONS, BEDROCK_FINE_GRAINED_TOOL_STREAMING_BETA, BEDROCK_OUTPUT_128K_BETA, BedrockProviders, BedrockReasoningConfig, CODE_ENV_KINDS, CacheKeys, Capabilities, CohereConstants, ComponentTypes, Constants, ContentTypes, DATE_RANGE, DEFAULT_MEMORY_MAX_INPUT_TOKENS, DynamicQueryKeys, EImageOutputType, EModelEndpoint, EToolResources, EndpointURLs, ErrorTypes, FEEDBACK_RATINGS, FEEDBACK_REASON_KEYS, FEEDBACK_TAGS, FetchTokenConfig, FileContext, FilePurpose, FileSources, ForkOptions, FunctionSignature, INTERFACE_PERMISSION_FIELDS, ImageDetail, ImageDetailCost, ImageVisionTool, InfiniteCollections, InvocationMode, KnownEndpoints, LocalStorageKeys, MAX_SUBAGENTS, MAX_SUBAGENT_DEPTH, MAX_SUBAGENT_GRAPH_NODES, MAX_SUBAGENT_RUN_CONFIGS, MCPOptionsSchema, MCPServerUserInputSchema, MCPServersSchema, MCP_USER_INPUT_FIELDS, MYTHOS_CLASS_FAMILIES, MessageContentTypes, MutationKeys, OCRStrategy, OptionTypes, PERMISSION_SUB_KEYS, PERMISSION_TYPE_INTERFACE_FIELDS, PermissionBits, PermissionTypes, Permissions, PrincipalModel, PrincipalType, Providers, QueryKeys, REFILL_INTERVAL_UNITS, RateLimitPrefix, ReasoningEffort, ReasoningParameterFormat, ReasoningResponseKey, ReasoningSummary, RerankerTypes, ResourceType, RetentionMode, RunStatus, SEPARATORS, SKILL_BODY_MAX_LENGTH, SKILL_DESCRIPTION_MAX_LENGTH, SKILL_DESCRIPTION_SHORT_THRESHOLD, SKILL_DISPLAY_TITLE_MAX_LENGTH, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_SYNC_DEFAULT_DISCOVERY_DEPTH, SKILL_SYNC_MAX_DISCOVERY_DEPTH, SKILL_SYNC_MAX_INTERVAL_MINUTES, SKILL_SYNC_MIN_INTERVAL_MINUTES, SSEOptionsSchema, STTProviders, SafeSearchTypes, ScraperProviders, SearchCategories, SearchProviders, SettingTypes, SettingsTabValues, SettingsViews, StdioOptionsSchema, StepEvents, StepStatus, StepTypes, StreamableHTTPOptionsSchema, SystemCategories, SystemRoles, TTSProviders, ThinkingDisplay, ThinkingLevel, Time, TokenExchangeMethodEnum, ToolCallTypes, Tools, Verbosity, ViolationTypes, VisionModes, WebSocketOptionsSchema, accessRoleSchema, accessRoleToPermBits, accordian, actionDelimiter, actionDomainSeparator, agentParamSettings, agentPermissionsSchema, agentsBaseSchema, agentsEndpointSchema, agentsSchema, agentsSettings, alert, alertDialog, allowedAddressesSchema, alternateName, anthropicBaseSchema, anthropicEndpointSchema, anthropicSchema, anthropicSettings, apiBaseUrl, appendAgentIdSuffix, applicationMimeTypes, applyModelAwareDefaults, assistantEndpointSchema, assistantSchema, audioMimeTypes, authTypeSchema, avatar, azureBaseSchema, azureEndpointSchema, azureGroupConfigsSchema, azureGroupSchema, badge, balanceSchema, baseEndpointSchema, bedrockDocumentExtensions, bedrockDocumentFormats, bedrockEndpointSchema, bedrockGuardrailConfigSchema, bedrockInputParser, bedrockInputSchema, bedrockModels, bedrockOutputParser, bookmarkPermissionsSchema, breadcrumb, buildLoginRedirectUrl, buildTree, button, calendar, card, carousel, checkOpenAIStorage, checkbox, cloudfrontConfigSchema, codeInterpreterMimeTypes, codeInterpreterMimeTypesList, codeTypeMapping, coerceNumber, collapsible, compactAgentsBaseSchema, compactAgentsSchema, compactAssistantSchema, compactGoogleSchema, configSchema, contextPruningSchema, convertStringsToRegex, createPayload, createURL, data_service_exports as dataService, defaultAgentCapabilities, defaultAgentFormValues, defaultAssistantFormValues, defaultAssistantsVersion, defaultEndpoints, defaultModels, defaultOCRMimeTypes, defaultOrderQuery, defaultRetrievalModels, defaultSTTMimeTypes, defaultSocialLogins, defaultTextMimeTypes, dialog, documentParserMimeTypes, documentSupportedProviders, drawer, dropdownMenu, eAnthropicEffortSchema, eImageDetailSchema, eModelEndpointSchema, eReasoningEffortSchema, eReasoningParameterFormatSchema, eReasoningResponseKeySchema, eReasoningSummarySchema, eThinkingDisplaySchema, eThinkingLevelSchema, eVerbositySchema, effectivePermissionsResponseSchema, encodeEphemeralAgentId, endpointFileConfigSchema, endpointSchema, endpointSettings, envVarRegex, errorsToString, essentialShadcnComponents, excelFileTypes, excelMimeTypes, excludedKeys, extendedModelEndpointSchema, extractDomainFromUrl, extractEnvVariable, extractVariableName, feedbackRatingSchema, feedbackSchema, feedbackTagKeySchema, fileCitationsPermissionsSchema, fileConfig, fileConfigSchema, fileSearchPermissionsSchema, fileSourceSchema, fileStorageSchema, fileStrategiesSchema, findLastSeparatorIndex, fullMimeTypesList, generateDynamicSchema, generateGoogleSchema, generateOpenAISchema, getConfigDefaults, getDefaultParamsEndpoint, getEnabledEndpoints, getEndpointField, getEndpointFileConfig, getFirstDefinedValue, getModelKey, getNonEmptyValue, getRefillEligibilityDate, getResourcePermissionsResponseSchema, getResponseSender, getSchemaDefaults, getSettingsKeys, getTagByKey, getTagsForRating, getTokenHeader, googleBaseSchema, googleGenConfigSchema, googleSchema, googleSettings, hasPermissions, hostImageIdSuffix, hostImageNamePrefix, hoverCard, imageDetailNumeric, imageDetailValue, imageExtRegex, imageGenTools, imageMimeTypes, imageTypeMapping, inferMimeType, initialModelsConfig, input, interfaceSchema, isActionTool, isAgentsEndpoint, isAssistantsEndpoint, isBedrockDocumentType, isDocumentSupportedProvider, isEphemeralAgentId, isImageVisionTool, isMythosClassModel, isOpenAILikeProvider, isParamEndpoint, isPermissiveMimeConfig, isRemoteOidcUrlAllowed, isSensitiveEnvVar, isSystemRoleName, isUUID, label, librechat, loginPage, mapGroupToAzureConfig, mapModelToAzureConfig, marketplacePermissionsSchema, mbToBytes, mcpServersPermissionsSchema, megabyte, memoryPermissionsSchema, memorySchema, menuBar, mergeFileConfig, messageFilterPiiSchema, messageFilterSchema, mimeTypeAliases, modelConfigSchema, modelSpecSubagentsSchema, modularEndpoints, multiConvoPermissionsSchema, navigationMenu, normalizeEndpointName, ocrSchema, omitsSamplingParameters, omitsThinkingByDefault, openAIBaseSchema, openAISchema, openAISettings, openRouterSchema, openapiToFunction, orderEndpointsConfig, pagination, paramDefinitionSchema, paramEndpoints, paramSettings, parseCompactConvo, parseConvo, parseEphemeralAgentId, parseTextParts, peoplePickerPermissionsSchema, permBitsToAccessLevel, permissionEntrySchema, permissionsSchema, popover, presetSettings, principalSchema, progress, promptPermissionsSchema, providerEndpointMap, radioGroup, rateLimitSchema, registerPage, remoteAgentsPermissionsSchema, removeNullishValues, replaceSpecialVars, request_default as request, resolveEndpointType, resolveRef, resolveThinkingDisplay, resourcePermissionsResponseSchema, retrievalMimeTypes, retrievalMimeTypesList, roleDefaults, roleSchema, runCodePermissionsSchema, select, separator, setAcceptLanguageHeader, setTokenHeader, sha1, shadcnComponents, sharedLinksPermissionsSchema, skeleton, skillPermissionsSchema, skillSyncConfigSchema, skillSyncGitHubSourceSchema, slider, specialVariables, specsConfigSchema, stripAgentIdSuffix, summarizationConfigSchema, summarizationTriggerSchema, supportedMimeTypes, supportsAdaptiveThinking, supportsBalanceCheck, supportsContext1m, supportsFiles, switchComponent, tBannerSchema, tConversationSchema, tConversationTagSchema, tConvoUpdateSchema, tExampleSchema, tMessageSchema, tModelSpecPresetSchema, tModelSpecSchema, tPluginAuthConfigSchema, tPluginSchema, tPresetSchema, tQueryParamsSchema, tSharedLinkSchema, table, tabs, temporaryChatPermissionsSchema, textMimeTypes, textarea, toMinimalFeedback, toast, toaster, toggle, toggleGroup, tooltip, transactionsSchema, turnstileOptionsSchema, turnstileSchema, updateResourcePermissionsRequestSchema, updateResourcePermissionsResponseSchema, useToast, utils, validateActionDomain, validateAndParseOpenAPISpec, validateAzureGroups, validateSettingDefinitions, validateVisionModel, vertexAISchema, vertexModelConfigSchema, videoMimeTypes, visionModels, webSearchPermissionsSchema, webSearchSchema };
|
|
6289
|
+
export { AccessRoleIds, ActionRequest, AgentCapabilities, AnnotationTypes, AnthropicEffort, ArtifactModes, AssistantStreamEvents, AuthKeys, AuthType, AuthTypeEnum, AuthorizationTypeEnum, BASE_ONLY_CONFIG_SECTIONS, BEDROCK_FINE_GRAINED_TOOL_STREAMING_BETA, BEDROCK_OUTPUT_128K_BETA, BedrockProviders, BedrockReasoningConfig, CODE_ENV_KINDS, CacheKeys, Capabilities, CohereConstants, ComponentTypes, Constants, ContentTypes, DATE_RANGE, DEFAULT_MEMORY_MAX_INPUT_TOKENS, DynamicQueryKeys, EImageOutputType, EModelEndpoint, EToolResources, EndpointURLs, ErrorTypes, FEEDBACK_RATINGS, FEEDBACK_REASON_KEYS, FEEDBACK_TAGS, FetchTokenConfig, FileContext, FilePurpose, FileSources, ForkOptions, FunctionSignature, INTERFACE_PERMISSION_FIELDS, ImageDetail, ImageDetailCost, ImageVisionTool, InfiniteCollections, InvocationMode, KnownEndpoints, LocalStorageKeys, MAX_SUBAGENTS, MAX_SUBAGENT_DEPTH, MAX_SUBAGENT_GRAPH_NODES, MAX_SUBAGENT_RUN_CONFIGS, MCPOptionsSchema, MCPServerUserInputSchema, MCPServersSchema, MCP_USER_INPUT_FIELDS, MYTHOS_CLASS_FAMILIES, MessageContentTypes, MutationKeys, OCRStrategy, OptionTypes, PERMISSION_SUB_KEYS, PERMISSION_TYPE_INTERFACE_FIELDS, PermissionBits, PermissionTypes, Permissions, PrincipalModel, PrincipalType, Providers, QueryKeys, REFILL_INTERVAL_UNITS, RateLimitPrefix, ReasoningEffort, ReasoningParameterFormat, ReasoningResponseKey, ReasoningSummary, RerankerTypes, ResourceType, RetentionMode, RunStatus, SEPARATORS, SKILL_BODY_MAX_LENGTH, SKILL_DESCRIPTION_MAX_LENGTH, SKILL_DESCRIPTION_SHORT_THRESHOLD, SKILL_DISPLAY_TITLE_MAX_LENGTH, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_SYNC_DEFAULT_DISCOVERY_DEPTH, SKILL_SYNC_MAX_DISCOVERY_DEPTH, SKILL_SYNC_MAX_INTERVAL_MINUTES, SKILL_SYNC_MIN_INTERVAL_MINUTES, SSEOptionsSchema, STTProviders, SafeSearchTypes, ScraperProviders, SearchCategories, SearchProviders, SettingTypes, SettingsTabValues, SettingsViews, StdioOptionsSchema, StepEvents, StepStatus, StepTypes, StreamableHTTPOptionsSchema, SystemCategories, SystemRoles, TTSProviders, ThinkingDisplay, ThinkingLevel, Time, TokenExchangeMethodEnum, ToolCallTypes, Tools, UsageEvents, Verbosity, ViolationTypes, VisionModes, WebSocketOptionsSchema, accessRoleSchema, accessRoleToPermBits, accordian, actionDelimiter, actionDomainSeparator, agentParamSettings, agentPermissionsSchema, agentsBaseSchema, agentsEndpointSchema, agentsSchema, agentsSettings, alert, alertDialog, allowedAddressesSchema, alternateName, anthropicBaseSchema, anthropicEndpointSchema, anthropicSchema, anthropicSettings, apiBaseUrl, appendAgentIdSuffix, applicationMimeTypes, applyModelAwareDefaults, assistantEndpointSchema, assistantSchema, audioMimeTypes, authTypeSchema, avatar, azureBaseSchema, azureEndpointSchema, azureGroupConfigsSchema, azureGroupSchema, badge, balanceSchema, baseEndpointSchema, bedrockDocumentExtensions, bedrockDocumentFormats, bedrockEndpointSchema, bedrockGuardrailConfigSchema, bedrockInputParser, bedrockInputSchema, bedrockModels, bedrockOutputParser, bookmarkPermissionsSchema, breadcrumb, buildLoginRedirectUrl, buildTree, button, cacheSubsetProviders, calendar, card, carousel, checkOpenAIStorage, checkbox, cloudfrontConfigSchema, codeInterpreterMimeTypes, codeInterpreterMimeTypesList, codeTypeMapping, coerceNumber, collapsible, compactAgentsBaseSchema, compactAgentsSchema, compactAssistantSchema, compactGoogleSchema, configSchema, contextPruningSchema, convertStringsToRegex, createPayload, createURL, data_service_exports as dataService, defaultAgentCapabilities, defaultAgentFormValues, defaultAssistantFormValues, defaultAssistantsVersion, defaultEndpoints, defaultModels, defaultOCRMimeTypes, defaultOrderQuery, defaultRetrievalModels, defaultSTTMimeTypes, defaultSocialLogins, defaultTextMimeTypes, dialog, documentParserMimeTypes, documentSupportedProviders, drawer, dropdownMenu, eAnthropicEffortSchema, eImageDetailSchema, eModelEndpointSchema, eReasoningEffortSchema, eReasoningParameterFormatSchema, eReasoningResponseKeySchema, eReasoningSummarySchema, eThinkingDisplaySchema, eThinkingLevelSchema, eVerbositySchema, effectivePermissionsResponseSchema, encodeEphemeralAgentId, endpointFileConfigSchema, endpointSchema, endpointSettings, envVarRegex, errorsToString, essentialShadcnComponents, excelFileTypes, excelMimeTypes, excludedKeys, extendedModelEndpointSchema, extractDomainFromUrl, extractEnvVariable, extractVariableName, feedbackRatingSchema, feedbackSchema, feedbackTagKeySchema, fileCitationsPermissionsSchema, fileConfig, fileConfigSchema, fileSearchPermissionsSchema, fileSourceSchema, fileStorageSchema, fileStrategiesSchema, findLastSeparatorIndex, fullMimeTypesList, generateDynamicSchema, generateGoogleSchema, generateOpenAISchema, getConfigDefaults, getDefaultParamsEndpoint, getEnabledEndpoints, getEndpointField, getEndpointFileConfig, getFirstDefinedValue, getModelKey, getNonEmptyValue, getRefillEligibilityDate, getResourcePermissionsResponseSchema, getResponseSender, getSchemaDefaults, getSettingsKeys, getTagByKey, getTagsForRating, getTokenHeader, googleBaseSchema, googleGenConfigSchema, googleSchema, googleSettings, hasPermissions, hostImageIdSuffix, hostImageNamePrefix, hoverCard, imageDetailNumeric, imageDetailValue, imageExtRegex, imageGenTools, imageMimeTypes, imageTypeMapping, inferMimeType, initialModelsConfig, input, inputTokensIncludesCache, interfaceSchema, isActionTool, isAgentsEndpoint, isAssistantsEndpoint, isBedrockDocumentType, isDocumentSupportedProvider, isEphemeralAgentId, isImageVisionTool, isMythosClassModel, isOpenAILikeProvider, isParamEndpoint, isPermissiveMimeConfig, isRemoteOidcUrlAllowed, isSensitiveEnvVar, isSystemRoleName, isUUID, label, librechat, loginPage, mapGroupToAzureConfig, mapModelToAzureConfig, marketplacePermissionsSchema, mbToBytes, mcpServersPermissionsSchema, megabyte, memoryPermissionsSchema, memorySchema, menuBar, mergeFileConfig, messageFilterPiiSchema, messageFilterSchema, mimeTypeAliases, modelConfigSchema, modelSpecSubagentsSchema, modularEndpoints, multiConvoPermissionsSchema, navigationMenu, normalizeEndpointName, ocrSchema, omitsSamplingParameters, omitsThinkingByDefault, openAIBaseSchema, openAISchema, openAISettings, openRouterSchema, openapiToFunction, orderEndpointsConfig, pagination, paramDefinitionSchema, paramEndpoints, paramSettings, parseCompactConvo, parseConvo, parseEphemeralAgentId, parseTextParts, peoplePickerPermissionsSchema, permBitsToAccessLevel, permissionEntrySchema, permissionsSchema, popover, presetSettings, principalSchema, progress, promptPermissionsSchema, promptTokensFromUsage, providerEndpointMap, radioGroup, rateLimitSchema, reconcileContextUsage, registerPage, remoteAgentsPermissionsSchema, removeNullishValues, replaceSpecialVars, request_default as request, resolveEndpointType, resolveRef, resolveThinkingDisplay, resourcePermissionsResponseSchema, retrievalMimeTypes, retrievalMimeTypesList, roleDefaults, roleSchema, runCodePermissionsSchema, select, separator, setAcceptLanguageHeader, setTokenHeader, sha1, shadcnComponents, sharedLinksPermissionsSchema, skeleton, skillPermissionsSchema, skillSyncConfigSchema, skillSyncGitHubSourceSchema, slider, specialVariables, specsConfigSchema, stripAgentIdSuffix, summarizationConfigSchema, summarizationTriggerSchema, supportedMimeTypes, supportsAdaptiveThinking, supportsBalanceCheck, supportsContext1m, supportsFiles, switchComponent, tBannerSchema, tConversationSchema, tConversationTagSchema, tConvoUpdateSchema, tExampleSchema, tMessageSchema, tModelSpecPresetSchema, tModelSpecSchema, tPluginAuthConfigSchema, tPluginSchema, tPresetSchema, tQueryParamsSchema, tSharedLinkSchema, table, tabs, temporaryChatPermissionsSchema, textMimeTypes, textarea, toMinimalFeedback, toast, toaster, toggle, toggleGroup, tooltip, transactionsSchema, turnstileOptionsSchema, turnstileSchema, updateResourcePermissionsRequestSchema, updateResourcePermissionsResponseSchema, useToast, utils, validateActionDomain, validateAndParseOpenAPISpec, validateAzureGroups, validateSettingDefinitions, validateVisionModel, vertexAISchema, vertexModelConfigSchema, videoMimeTypes, visionModels, webSearchPermissionsSchema, webSearchSchema };
|
|
6160
6290
|
|
|
6161
6291
|
//# sourceMappingURL=index.mjs.map
|