librechat-data-provider 0.8.505 → 0.8.507
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-CG5e1FOi.js → data-service-CCdWvcRd.js} +34 -7
- package/dist/data-service-CCdWvcRd.js.map +1 -0
- package/dist/{data-service-CwM4Cew0.mjs → data-service-D7mtXwG5.mjs} +34 -7
- package/dist/data-service-D7mtXwG5.mjs.map +1 -0
- package/dist/index.js +184 -56
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +181 -57
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +2 -1
- package/dist/react-query/index.js.map +1 -1
- package/dist/react-query/index.mjs +2 -1
- package/dist/react-query/index.mjs.map +1 -1
- package/dist/types/api-endpoints.d.ts +2 -0
- package/dist/types/bedrock.d.ts +20 -5
- package/dist/types/config.d.ts +32 -0
- package/dist/types/data-service.d.ts +3 -0
- package/dist/types/generate.d.ts +4 -0
- package/dist/types/keys.d.ts +3 -1
- package/dist/types/models.d.ts +24 -0
- package/dist/types/parsers.d.ts +2 -1
- package/dist/types/schemas.d.ts +82 -6
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types/runs.d.ts +44 -0
- package/dist/types/types.d.ts +8 -1
- package/package.json +2 -2
- package/dist/data-service-CG5e1FOi.js.map +0 -1
- package/dist/data-service-CwM4Cew0.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,59 +1,12 @@
|
|
|
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-
|
|
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.js";
|
|
5
|
+
import timezonePlugin from "dayjs/plugin/timezone.js";
|
|
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
|
-
/** Token-tracking event names streamed to the client (separate from StepEvents dispatch). */
|
|
51
|
-
let UsageEvents = /* @__PURE__ */ function(UsageEvents) {
|
|
52
|
-
UsageEvents["ON_CONTEXT_USAGE"] = "on_context_usage";
|
|
53
|
-
UsageEvents["ON_TOKEN_USAGE"] = "on_token_usage";
|
|
54
|
-
return UsageEvents;
|
|
55
|
-
}({});
|
|
56
|
-
//#endregion
|
|
57
10
|
//#region src/bedrock.ts
|
|
58
11
|
const DEFAULT_ENABLED_MAX_TOKENS = 8192;
|
|
59
12
|
const DEFAULT_THINKING_BUDGET = 2e3;
|
|
@@ -213,6 +166,7 @@ const bedrockInputSchema = tConversationSchema.pick({
|
|
|
213
166
|
thinkingDisplay: true,
|
|
214
167
|
reasoning_effort: true,
|
|
215
168
|
promptCache: true,
|
|
169
|
+
promptCacheTtl: true,
|
|
216
170
|
topK: true,
|
|
217
171
|
additionalModelRequestFields: true
|
|
218
172
|
}).transform((obj) => {
|
|
@@ -251,6 +205,7 @@ const bedrockInputParser = tConversationSchema.pick({
|
|
|
251
205
|
thinkingDisplay: true,
|
|
252
206
|
reasoning_effort: true,
|
|
253
207
|
promptCache: true,
|
|
208
|
+
promptCacheTtl: true,
|
|
254
209
|
topK: true,
|
|
255
210
|
additionalModelRequestFields: true
|
|
256
211
|
}).catchall(z.any()).transform((data) => {
|
|
@@ -271,7 +226,8 @@ const bedrockInputParser = tConversationSchema.pick({
|
|
|
271
226
|
"temperature",
|
|
272
227
|
"topP",
|
|
273
228
|
"stop",
|
|
274
|
-
"promptCache"
|
|
229
|
+
"promptCache",
|
|
230
|
+
"promptCacheTtl"
|
|
275
231
|
];
|
|
276
232
|
const additionalFields = {};
|
|
277
233
|
const typedData = data;
|
|
@@ -377,6 +333,12 @@ const bedrockInputParser = tConversationSchema.pick({
|
|
|
377
333
|
if (typeof typedData.model === "string" && (typedData.model.includes("claude") || typedData.model.includes("nova"))) {
|
|
378
334
|
if (typedData.promptCache === void 0) typedData.promptCache = true;
|
|
379
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;
|
|
380
342
|
if (Object.keys(additionalFields).length > 0) typedData.additionalModelRequestFields = {
|
|
381
343
|
...typedData.additionalModelRequestFields || {},
|
|
382
344
|
...additionalFields
|
|
@@ -434,7 +396,100 @@ const bedrockOutputParser = (data) => {
|
|
|
434
396
|
return result;
|
|
435
397
|
};
|
|
436
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
|
|
437
490
|
//#region src/parsers.ts
|
|
491
|
+
dayjs.extend(utc);
|
|
492
|
+
dayjs.extend(timezonePlugin);
|
|
438
493
|
const endpointSchemas = {
|
|
439
494
|
["openAI"]: openAISchema,
|
|
440
495
|
["azureOpenAI"]: openAISchema,
|
|
@@ -633,10 +688,24 @@ function findLastSeparatorIndex(text, separators = SEPARATORS) {
|
|
|
633
688
|
}
|
|
634
689
|
return lastIndex;
|
|
635
690
|
}
|
|
636
|
-
|
|
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 }) {
|
|
637
706
|
let result = text;
|
|
638
707
|
if (!result) return result;
|
|
639
|
-
const now = inputNow != null ? dayjs(inputNow) : dayjs();
|
|
708
|
+
const now = applyTimezone(inputNow != null ? dayjs(inputNow) : dayjs(), timezone);
|
|
640
709
|
const weekdayName = now.format("dddd");
|
|
641
710
|
const currentDate = now.format("YYYY-MM-DD");
|
|
642
711
|
result = result.replace(/{{\s*current_date\s*}}/gi, `${currentDate} (${weekdayName})`);
|
|
@@ -4988,6 +5057,14 @@ function validateAndParseOpenAPISpec(specString) {
|
|
|
4988
5057
|
}
|
|
4989
5058
|
//#endregion
|
|
4990
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
|
+
}
|
|
4991
5068
|
function createPayload(submission) {
|
|
4992
5069
|
const { isEdited, addedConvo, userMessage, isContinued, isTemporary, isRegenerate, conversation, editedContent, ephemeralAgent, endpointOption, manualSkills } = submission;
|
|
4993
5070
|
const { conversationId } = tConvoUpdateSchema.parse(conversation);
|
|
@@ -5006,7 +5083,8 @@ function createPayload(submission) {
|
|
|
5006
5083
|
conversationId,
|
|
5007
5084
|
isContinued: !!(isEdited && isContinued),
|
|
5008
5085
|
ephemeralAgent: isAssistantsEndpoint(endpoint) ? void 0 : ephemeralAgent,
|
|
5009
|
-
manualSkills: isAssistantsEndpoint(endpoint) ? void 0 : manualSkills
|
|
5086
|
+
manualSkills: isAssistantsEndpoint(endpoint) ? void 0 : manualSkills,
|
|
5087
|
+
timezone: getUserTimezone()
|
|
5010
5088
|
};
|
|
5011
5089
|
return {
|
|
5012
5090
|
server,
|
|
@@ -5410,6 +5488,22 @@ const anthropic = {
|
|
|
5410
5488
|
showDefault: false,
|
|
5411
5489
|
columnSpan: 2
|
|
5412
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: "combobox",
|
|
5501
|
+
optionType: "conversation",
|
|
5502
|
+
showDefault: false,
|
|
5503
|
+
selectPlaceholder: "com_endpoint_prompt_cache_ttl_default",
|
|
5504
|
+
selectPlaceholderCode: true,
|
|
5505
|
+
columnSpan: 2
|
|
5506
|
+
},
|
|
5413
5507
|
thinking: {
|
|
5414
5508
|
key: "thinking",
|
|
5415
5509
|
label: "com_endpoint_thinking",
|
|
@@ -5565,6 +5659,22 @@ const bedrock = {
|
|
|
5565
5659
|
showDefault: false,
|
|
5566
5660
|
columnSpan: 2
|
|
5567
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: "combobox",
|
|
5672
|
+
optionType: "conversation",
|
|
5673
|
+
showDefault: false,
|
|
5674
|
+
selectPlaceholder: "com_endpoint_prompt_cache_ttl_default",
|
|
5675
|
+
selectPlaceholderCode: true,
|
|
5676
|
+
columnSpan: 2
|
|
5677
|
+
},
|
|
5568
5678
|
reasoning_effort: {
|
|
5569
5679
|
key: "reasoning_effort",
|
|
5570
5680
|
label: "com_endpoint_reasoning_effort",
|
|
@@ -5818,7 +5928,11 @@ const openAI = [
|
|
|
5818
5928
|
openAIParams.disableStreaming,
|
|
5819
5929
|
librechat.fileTokenLimit
|
|
5820
5930
|
];
|
|
5821
|
-
const openRouter = [
|
|
5931
|
+
const openRouter = [
|
|
5932
|
+
...openAI,
|
|
5933
|
+
anthropic.promptCache,
|
|
5934
|
+
anthropic.promptCacheTtl
|
|
5935
|
+
];
|
|
5822
5936
|
const openAICol1 = [
|
|
5823
5937
|
baseDefinitions.model,
|
|
5824
5938
|
librechat.modelLabel,
|
|
@@ -5852,6 +5966,7 @@ const anthropicConfig = [
|
|
|
5852
5966
|
anthropic.topK,
|
|
5853
5967
|
librechat.resendFiles,
|
|
5854
5968
|
anthropic.promptCache,
|
|
5969
|
+
anthropic.promptCacheTtl,
|
|
5855
5970
|
anthropic.thinking,
|
|
5856
5971
|
anthropic.thinkingBudget,
|
|
5857
5972
|
anthropic.effort,
|
|
@@ -5872,6 +5987,7 @@ const anthropicCol2 = [
|
|
|
5872
5987
|
anthropic.topK,
|
|
5873
5988
|
librechat.resendFiles,
|
|
5874
5989
|
anthropic.promptCache,
|
|
5990
|
+
anthropic.promptCacheTtl,
|
|
5875
5991
|
anthropic.thinking,
|
|
5876
5992
|
anthropic.thinkingBudget,
|
|
5877
5993
|
anthropic.effort,
|
|
@@ -5891,6 +6007,7 @@ const bedrockAnthropic = [
|
|
|
5891
6007
|
librechat.resendFiles,
|
|
5892
6008
|
bedrock.region,
|
|
5893
6009
|
bedrock.promptCache,
|
|
6010
|
+
bedrock.promptCacheTtl,
|
|
5894
6011
|
anthropic.thinking,
|
|
5895
6012
|
anthropic.thinkingBudget,
|
|
5896
6013
|
anthropic.effort,
|
|
@@ -5928,6 +6045,7 @@ const bedrockGeneral = [
|
|
|
5928
6045
|
librechat.resendFiles,
|
|
5929
6046
|
bedrock.region,
|
|
5930
6047
|
bedrock.promptCache,
|
|
6048
|
+
bedrock.promptCacheTtl,
|
|
5931
6049
|
librechat.fileTokenLimit
|
|
5932
6050
|
];
|
|
5933
6051
|
const bedrockAnthropicCol1 = [
|
|
@@ -5945,6 +6063,7 @@ const bedrockAnthropicCol2 = [
|
|
|
5945
6063
|
librechat.resendFiles,
|
|
5946
6064
|
bedrock.region,
|
|
5947
6065
|
bedrock.promptCache,
|
|
6066
|
+
bedrock.promptCacheTtl,
|
|
5948
6067
|
anthropic.thinking,
|
|
5949
6068
|
anthropic.thinkingBudget,
|
|
5950
6069
|
anthropic.effort,
|
|
@@ -5991,6 +6110,7 @@ const bedrockGeneralCol2 = [
|
|
|
5991
6110
|
librechat.resendFiles,
|
|
5992
6111
|
bedrock.region,
|
|
5993
6112
|
bedrock.promptCache,
|
|
6113
|
+
bedrock.promptCacheTtl,
|
|
5994
6114
|
librechat.fileTokenLimit
|
|
5995
6115
|
];
|
|
5996
6116
|
const bedrockZAI = [
|
|
@@ -6080,7 +6200,11 @@ const presetSettings = {
|
|
|
6080
6200
|
["custom"]: openAIColumns,
|
|
6081
6201
|
["openrouter"]: {
|
|
6082
6202
|
col1: openAICol1,
|
|
6083
|
-
col2: [
|
|
6203
|
+
col2: [
|
|
6204
|
+
...openAICol2,
|
|
6205
|
+
anthropic.promptCache,
|
|
6206
|
+
anthropic.promptCacheTtl
|
|
6207
|
+
]
|
|
6084
6208
|
},
|
|
6085
6209
|
["anthropic"]: {
|
|
6086
6210
|
col1: anthropicCol1,
|
|
@@ -6162,6 +6286,6 @@ const CODE_ENV_KINDS = [
|
|
|
6162
6286
|
"user"
|
|
6163
6287
|
];
|
|
6164
6288
|
//#endregion
|
|
6165
|
-
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, 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 };
|
|
6166
6290
|
|
|
6167
6291
|
//# sourceMappingURL=index.mjs.map
|