librechat-data-provider 0.8.508 → 0.8.509
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-DgNwjhBS.mjs → data-service-BsdHkdKS.mjs} +19 -4
- package/dist/data-service-BsdHkdKS.mjs.map +1 -0
- package/dist/{data-service-DN-HeTC-.js → data-service-XTxx76uB.js} +19 -4
- package/dist/data-service-XTxx76uB.js.map +1 -0
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +1 -1
- package/dist/react-query/index.mjs +1 -1
- package/dist/types/api-endpoints.d.ts +1 -0
- package/dist/types/bedrock.d.ts +5 -0
- package/dist/types/config.d.ts +88 -0
- package/dist/types/data-service.d.ts +1 -0
- package/dist/types/generate.d.ts +2 -0
- package/dist/types/keys.d.ts +1 -0
- package/dist/types/models.d.ts +12 -0
- package/dist/types/schemas.d.ts +45 -4
- package/dist/types/types.d.ts +2 -0
- package/package.json +1 -1
- package/dist/data-service-DN-HeTC-.js.map +0 -1
- package/dist/data-service-DgNwjhBS.mjs.map +0 -1
|
@@ -1007,6 +1007,7 @@ const tConversationSchema = z.object({
|
|
|
1007
1007
|
effort: eAnthropicEffortSchema.optional().nullable(),
|
|
1008
1008
|
thinkingDisplay: eThinkingDisplaySchema.optional().nullable(),
|
|
1009
1009
|
web_search: z.boolean().optional(),
|
|
1010
|
+
url_context: z.boolean().optional(),
|
|
1010
1011
|
disableStreaming: z.boolean().optional(),
|
|
1011
1012
|
assistant_id: z.string().optional(),
|
|
1012
1013
|
agent_id: z.string().optional(),
|
|
@@ -1097,6 +1098,8 @@ const tQueryParamsSchema = tConversationSchema.pick({
|
|
|
1097
1098
|
useResponsesApi: true,
|
|
1098
1099
|
/** @endpoints openAI, anthropic, google */
|
|
1099
1100
|
web_search: true,
|
|
1101
|
+
/** @endpoints google */
|
|
1102
|
+
url_context: true,
|
|
1100
1103
|
/** @endpoints openAI, custom, azureOpenAI */
|
|
1101
1104
|
disableStreaming: true,
|
|
1102
1105
|
/** @endpoints google, anthropic, bedrock */
|
|
@@ -1194,6 +1197,7 @@ const googleBaseSchema = tConversationSchema.pick({
|
|
|
1194
1197
|
thinkingBudget: true,
|
|
1195
1198
|
thinkingLevel: true,
|
|
1196
1199
|
web_search: true,
|
|
1200
|
+
url_context: true,
|
|
1197
1201
|
fileTokenLimit: true,
|
|
1198
1202
|
iconURL: true,
|
|
1199
1203
|
greeting: true,
|
|
@@ -1220,7 +1224,8 @@ const googleGenConfigSchema = z.object({
|
|
|
1220
1224
|
thinkingBudget: coerceNumber.optional(),
|
|
1221
1225
|
thinkingLevel: z.string().optional()
|
|
1222
1226
|
}).optional(),
|
|
1223
|
-
web_search: z.boolean().optional()
|
|
1227
|
+
web_search: z.boolean().optional(),
|
|
1228
|
+
url_context: z.boolean().optional()
|
|
1224
1229
|
}).strip().optional();
|
|
1225
1230
|
function removeNullishValues(obj, removeEmptyStrings) {
|
|
1226
1231
|
const newObj = { ...obj };
|
|
@@ -2445,6 +2450,7 @@ const messagesArtifacts = (messageId) => `${messagesRoot}/artifact/${messageId}`
|
|
|
2445
2450
|
const messagesBranch = () => `${messagesRoot}/branch`;
|
|
2446
2451
|
const shareRoot = `${BASE_URL}/api/share`;
|
|
2447
2452
|
const shareMessages = (shareId) => `${shareRoot}/${shareId}`;
|
|
2453
|
+
const sharedStartupConfig = (shareId) => `${shareMessages(shareId)}/config`;
|
|
2448
2454
|
const getSharedLink$1 = (conversationId) => `${shareRoot}/link/${conversationId}`;
|
|
2449
2455
|
const getSharedLinks = (pageSize, sortBy, sortDirection, search, cursor) => `${shareRoot}?pageSize=${pageSize}&sortBy=${sortBy}&sortDirection=${sortDirection}${search ? `&search=${search}` : ""}${cursor ? `&cursor=${cursor}` : ""}`;
|
|
2450
2456
|
const createSharedLink$1 = (conversationId) => `${shareRoot}/${conversationId}`;
|
|
@@ -3614,6 +3620,10 @@ const endpointSchema = baseEndpointSchema.merge(z.object({
|
|
|
3614
3620
|
defaultParamsEndpoint: z.string().default("custom"),
|
|
3615
3621
|
reasoningFormat: eReasoningParameterFormatSchema.optional(),
|
|
3616
3622
|
reasoningKey: eReasoningResponseKeySchema.optional(),
|
|
3623
|
+
/** Replays `reasoning_content` within a run's tool-call turns (e.g. Xiaomi MiMo, Kimi). */
|
|
3624
|
+
includeReasoningContent: z.boolean().optional(),
|
|
3625
|
+
/** Also reconstructs `reasoning_content` from persisted history across turns (implies `includeReasoningContent`). */
|
|
3626
|
+
includeReasoningHistory: z.boolean().optional(),
|
|
3617
3627
|
paramDefinitions: z.array(paramDefinitionSchema).optional()
|
|
3618
3628
|
}).strict().optional(),
|
|
3619
3629
|
directEndpoint: z.boolean().optional(),
|
|
@@ -4901,7 +4911,7 @@ let TTSProviders = /* @__PURE__ */ function(TTSProviders) {
|
|
|
4901
4911
|
/** Enum for app-wide constants */
|
|
4902
4912
|
let Constants = /* @__PURE__ */ function(Constants) {
|
|
4903
4913
|
/**
|
|
4904
|
-
* Key for the app's version. The placeholder `v0.8.7
|
|
4914
|
+
* Key for the app's version. The placeholder `v0.8.7` is
|
|
4905
4915
|
* swapped in by `@rollup/plugin-replace` during `npm run build:data-provider`
|
|
4906
4916
|
* using the value of the root `package.json`'s `version` field. Consumers
|
|
4907
4917
|
* always import this via the built dist bundle (see `main` field in
|
|
@@ -4909,7 +4919,7 @@ let Constants = /* @__PURE__ */ function(Constants) {
|
|
|
4909
4919
|
* substituted value. Only tests that import the TypeScript source directly
|
|
4910
4920
|
* would observe the raw placeholder.
|
|
4911
4921
|
*/
|
|
4912
|
-
Constants["VERSION"] = "v0.8.7
|
|
4922
|
+
Constants["VERSION"] = "v0.8.7";
|
|
4913
4923
|
/** Key for the Custom Config's version (librechat.yaml). */
|
|
4914
4924
|
Constants["CONFIG_VERSION"] = "1.3.13";
|
|
4915
4925
|
/** Standard value for the first message's `parentMessageId` value, to indicate no parent exists. */
|
|
@@ -5327,6 +5337,7 @@ function hasPermissions(permissions, requiredPermission) {
|
|
|
5327
5337
|
let QueryKeys = /* @__PURE__ */ function(QueryKeys) {
|
|
5328
5338
|
QueryKeys["messages"] = "messages";
|
|
5329
5339
|
QueryKeys["sharedMessages"] = "sharedMessages";
|
|
5340
|
+
QueryKeys["sharedStartupConfig"] = "sharedStartupConfig";
|
|
5330
5341
|
QueryKeys["sharedLinks"] = "sharedLinks";
|
|
5331
5342
|
QueryKeys["allConversations"] = "allConversations";
|
|
5332
5343
|
QueryKeys["archivedConversations"] = "archivedConversations";
|
|
@@ -5784,6 +5795,7 @@ var data_service_exports = /* @__PURE__ */ __exportAll({
|
|
|
5784
5795
|
getSharedFilePreview: () => getSharedFilePreview,
|
|
5785
5796
|
getSharedLink: () => getSharedLink,
|
|
5786
5797
|
getSharedMessages: () => getSharedMessages,
|
|
5798
|
+
getSharedStartupConfig: () => getSharedStartupConfig,
|
|
5787
5799
|
getSkill: () => getSkill,
|
|
5788
5800
|
getSkillFavorites: () => getSkillFavorites,
|
|
5789
5801
|
getSkillFileContent: () => getSkillFileContent,
|
|
@@ -5912,6 +5924,9 @@ function updateSkillStates(skillStates$1) {
|
|
|
5912
5924
|
function getSharedMessages(shareId) {
|
|
5913
5925
|
return request_default.get(shareMessages(shareId));
|
|
5914
5926
|
}
|
|
5927
|
+
function getSharedStartupConfig(shareId) {
|
|
5928
|
+
return request_default.get(sharedStartupConfig(shareId));
|
|
5929
|
+
}
|
|
5915
5930
|
const listSharedLinks = async (params) => {
|
|
5916
5931
|
const { pageSize, sortBy, sortDirection, search, cursor } = params;
|
|
5917
5932
|
return request_default.get(getSharedLinks(pageSize, sortBy, sortDirection, search, cursor));
|
|
@@ -6663,4 +6678,4 @@ const getActiveJobs = () => {
|
|
|
6663
6678
|
//#endregion
|
|
6664
6679
|
export { permissionEntrySchema as $, feedbackSchema as $a, extendedModelEndpointSchema as $i, MCP_USER_INPUT_FIELDS as $n, specsConfigSchema as $r, balanceSchema as $t, updateResourcePermissions as A, tPluginAuthConfigSchema as Aa, anthropicSettings as Ai, modularEndpoints as An, fileConfig as Ar, SKILL_SYNC_MAX_INTERVAL_MINUTES as At, MutationKeys as B, RunStatus as Ba, defaultAssistantFormValues as Bi, summarizationTriggerSchema as Bn, mbToBytes as Br, TTSProviders as Bt, resetPassword as C, tBannerSchema as Ca, ThinkingLevel as Ci, initialModelsConfig as Cn, defaultOCRMimeTypes as Cr, MAX_SUBAGENT_RUN_CONFIGS as Ct, updateFeedback as D, tExampleSchema as Da, agentsSettings as Di, messageFilterPiiSchema as Dn, endpointFileConfigSchema as Dr, RetentionMode as Dt, searchPrincipals as E, tConvoUpdateSchema as Ea, agentsSchema as Ei, memorySchema as En, documentParserMimeTypes as Er, RerankerTypes as Et, request_default as F, AnnotationTypes as Fa, compactAgentsBaseSchema as Fi, resolveEndpointType as Fn, imageMimeTypes as Fr, SearchCategories as Ft, PrincipalType as G, defaultOrderQuery as Ga, eReasoningEffortSchema as Gi, validateVisionModel as Gn, retrievalMimeTypesList as Gr, allowedAddressesSchema as Gt, AccessRoleIds as H, Tools as Ha, eAnthropicEffortSchema as Hi, transactionsSchema as Hn, mergeFileConfig as Hr, ViolationTypes as Ht, getTokenHeader as I, AssistantStreamEvents as Ia, compactAgentsSchema as Ii, skillSyncConfigSchema as In, imageTypeMapping as Ir, SearchProviders as It, accessRoleToPermBits as J, isActionTool as Ja, eReasoningSummarySchema as Ji, visionModels as Jn, textMimeTypes as Jr, assistantEndpointSchema as Jt, ResourceType as K, hostImageIdSuffix as Ka, eReasoningParameterFormatSchema as Ki, vertexAISchema as Kn, supportedMimeTypes as Kr, alternateName as Kt, setAcceptLanguageHeader as L, EToolResources as La, compactAssistantSchema as Li, skillSyncGitHubSourceSchema as Ln, inferMimeType as Lr, SettingsTabValues as Lt, updateUserKey as M, tPresetSchema as Ma, authTypeSchema as Mi, paramDefinitionSchema as Mn, fullMimeTypesList as Mr, STTProviders as Mt, updateUserPlugins as N, tQueryParamsSchema as Na, cacheSubsetProviders as Ni, providerEndpointMap as Nn, getEndpointFileConfig as Nr, SafeSearchTypes as Nt, updateMessage as O, tMessageSchema as Oa, anthropicBaseSchema as Oi, messageFilterSchema as On, excelFileTypes as Or, SKILL_SYNC_DEFAULT_DISCOVERY_DEPTH as Ot, userKeyQuery as P, tSharedLinkSchema as Pa, coerceNumber as Pi, rateLimitSchema as Pn, imageExtRegex as Pr, ScraperProviders as Pt, permBitsToAccessLevel as Q, feedbackRatingSchema as Qa, endpointSettings as Qi, MCPServersSchema as Qn, modelSpecSubagentsSchema as Qr, azureGroupSchema as Qt, setTokenHeader as R, FilePurpose as Ra, compactGoogleSchema as Ri, specialVariables as Rn, isBedrockDocumentType as Rr, SettingsViews as Rt, requestPasswordReset as S, removeNullishValues as Sa, ThinkingDisplay as Si, imageGenTools as Sn, convertStringsToRegex as Sr, MAX_SUBAGENT_GRAPH_NODES as St, revokeUserKey as T, tConversationTagSchema as Ta, agentsBaseSchema as Ti, isRemoteOidcUrlAllowed as Tn, defaultTextMimeTypes as Tr, RateLimitPrefix as Tt, PermissionBits as U, actionDelimiter as Ua, eImageDetailSchema as Ui, turnstileOptionsSchema as Un, mimeTypeAliases as Ur, VisionModes as Ut, QueryKeys as V, StepStatus as Va, documentSupportedProviders as Vi, supportsBalanceCheck as Vn, megabyte as Vr, Time as Vt, PrincipalModel as W, actionDomainSeparator as Wa, eModelEndpointSchema as Wi, turnstileSchema as Wn, retrievalMimeTypes as Wr, agentsEndpointSchema as Wt, getResourcePermissionsResponseSchema as X, FEEDBACK_REASON_KEYS as Xa, eThinkingLevelSchema as Xi, MCPOptionsSchema as Xn, REFILL_INTERVAL_UNITS as Xr, azureEndpointSchema as Xt, effectivePermissionsResponseSchema as Y, FEEDBACK_RATINGS as Ya, eThinkingDisplaySchema as Yi, webSearchSchema as Yn, videoMimeTypes as Yr, azureBaseSchema as Yt, hasPermissions as Z, FEEDBACK_TAGS as Za, eVerbositySchema as Zi, MCPServerUserInputSchema as Zn, getRefillEligibilityDate as Zr, azureGroupConfigsSchema as Zt, getResourcePermissions as _, openAIBaseSchema as _a, Providers as _i, fileStrategiesSchema as _n, bedrockDocumentExtensions as _r, ImageDetailCost as _t, data_service_exports as a, googleSettings as aa, generateDynamicSchema as ai, configSchema as an, extractEnvVariable as ao, AuthorizationTypeEnum as ar, AuthKeys as at, register as b, openRouterSchema as ba, ReasoningResponseKey as bi, getEndpointField as bn, codeInterpreterMimeTypesList as br, LocalStorageKeys as bt, getAccessRoles as c, inputTokensIncludesCache as ca, validateSettingDefinitions as ci, defaultAssistantsVersion as cn, normalizeEndpointName as co, FileSources as cr, Capabilities as ct, getAvailablePlugins as d, isDocumentSupportedProvider as da, BedrockProviders as di, defaultRetrievalModels as dn, buildLoginRedirectUrl as dr, DEFAULT_MEMORY_MAX_INPUT_TOKENS as dt, getModelKey as ea, tModelSpecSchema as ei, baseEndpointSchema as en, feedbackTagKeySchema as eo, SSEOptionsSchema as er, principalSchema as et, getConversationById as f, isImageVisionTool as fa, BedrockReasoningConfig as fi, defaultSocialLogins as fn, loginPage as fr, EImageOutputType as ft, getModels as g, isUUID as ga, MYTHOS_CLASS_FAMILIES as gi, fileStorageSchema as gn, audioMimeTypes as gr, ForkOptions as gt, getMCPServerConnectionStatus as h, isParamEndpoint as ha, ImageVisionTool as hi, fileSourceSchema as hn, applicationMimeTypes as hr, FetchTokenConfig as ht, createPreset as i, googleSchema as ia, SettingTypes as ii, cloudfrontConfigSchema as in, envVarRegex as io, AuthTypeEnum as ir, AgentCapabilities as it, updateTokenCount as j, tPluginSchema as ja, assistantSchema as ji, ocrSchema as jn, fileConfigSchema as jr, SKILL_SYNC_MIN_INTERVAL_MINUTES as jt, updateMessageContent as k, tModelSpecPresetSchema as ka, anthropicSchema as ki, modelConfigSchema as kn, excelMimeTypes as kr, SKILL_SYNC_MAX_DISCOVERY_DEPTH as kt, getAgentApiKeys as l, isAgentsEndpoint as la, AnthropicEffort as li, defaultEndpoints as ln, checkOpenAIStorage as lr, CohereConstants as lt, getEffectivePermissions as m, isOpenAILikeProvider as ma, ImageDetail as mi, excludedKeys as mn, sharedFileDownload as mr, ErrorTypes as mt, clearAllConversations as n, googleBaseSchema as na, ComponentTypes as ni, bedrockGuardrailConfigSchema as nn, getTagsForRating as no, StreamableHTTPOptionsSchema as nr, updateResourcePermissionsRequestSchema as nt, deleteAgentApiKey as o, imageDetailNumeric as oa, generateGoogleSchema as oi, contextPruningSchema as on, extractVariableName as oo, TokenExchangeMethodEnum as or, BASE_ONLY_CONFIG_SECTIONS as ot, getCustomConfigSpeech as p, isMythosClassModel as pa, EModelEndpoint as pi, endpointSchema as pn, registerPage as pr, EndpointURLs as pt, accessRoleSchema as q, hostImageNamePrefix as qa, eReasoningResponseKeySchema as qi, vertexModelConfigSchema as qn, supportsFiles as qr, anthropicEndpointSchema as qt, createAgentApiKey as r, googleGenConfigSchema as ra, OptionTypes as ri, bedrockModels as rn, toMinimalFeedback as ro, WebSocketOptionsSchema as rr, updateResourcePermissionsResponseSchema as rt, deletePreset as s, imageDetailValue as sa, generateOpenAISchema as si, defaultAgentCapabilities as sn, isSensitiveEnvVar as so, FileContext as sr, CacheKeys as st, cancelMCPOAuth as t, getSettingsKeys as ta, MAX_SUBAGENTS as ti, bedrockEndpointSchema as tn, getTagByKey as to, StdioOptionsSchema as tr, resourcePermissionsResponseSchema as tt, getAllEffectivePermissions as u, isAssistantsEndpoint as ua, AuthType as ui, defaultModels as un, apiBaseUrl as ur, Constants as ut, getSharedLink as v, openAISchema as va, ReasoningEffort as vi, getConfigDefaults as vn, bedrockDocumentFormats as vr, InfiniteCollections as vt, revokeAllUserKeys as w, tConversationSchema as wa, Verbosity as wi, interfaceSchema as wn, defaultSTTMimeTypes as wr, OCRStrategy as wt, reinitializeMCPServer as x, paramEndpoints as xa, ReasoningSummary as xi, getSchemaDefaults as xn, codeTypeMapping as xr, MAX_SUBAGENT_DEPTH as xt, getSharedMessages as y, openAISettings as ya, ReasoningParameterFormat as yi, getDefaultParamsEndpoint as yn, codeInterpreterMimeTypes as yr, KnownEndpoints as yt, DynamicQueryKeys as z, MessageContentTypes as za, defaultAgentFormValues as zi, summarizationConfigSchema as zn, isPermissiveMimeConfig as zr, SystemCategories as zt };
|
|
6665
6680
|
|
|
6666
|
-
//# sourceMappingURL=data-service-
|
|
6681
|
+
//# sourceMappingURL=data-service-BsdHkdKS.mjs.map
|