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
|
@@ -1027,6 +1027,7 @@ const tConversationSchema = zod.z.object({
|
|
|
1027
1027
|
effort: eAnthropicEffortSchema.optional().nullable(),
|
|
1028
1028
|
thinkingDisplay: eThinkingDisplaySchema.optional().nullable(),
|
|
1029
1029
|
web_search: zod.z.boolean().optional(),
|
|
1030
|
+
url_context: zod.z.boolean().optional(),
|
|
1030
1031
|
disableStreaming: zod.z.boolean().optional(),
|
|
1031
1032
|
assistant_id: zod.z.string().optional(),
|
|
1032
1033
|
agent_id: zod.z.string().optional(),
|
|
@@ -1117,6 +1118,8 @@ const tQueryParamsSchema = tConversationSchema.pick({
|
|
|
1117
1118
|
useResponsesApi: true,
|
|
1118
1119
|
/** @endpoints openAI, anthropic, google */
|
|
1119
1120
|
web_search: true,
|
|
1121
|
+
/** @endpoints google */
|
|
1122
|
+
url_context: true,
|
|
1120
1123
|
/** @endpoints openAI, custom, azureOpenAI */
|
|
1121
1124
|
disableStreaming: true,
|
|
1122
1125
|
/** @endpoints google, anthropic, bedrock */
|
|
@@ -1214,6 +1217,7 @@ const googleBaseSchema = tConversationSchema.pick({
|
|
|
1214
1217
|
thinkingBudget: true,
|
|
1215
1218
|
thinkingLevel: true,
|
|
1216
1219
|
web_search: true,
|
|
1220
|
+
url_context: true,
|
|
1217
1221
|
fileTokenLimit: true,
|
|
1218
1222
|
iconURL: true,
|
|
1219
1223
|
greeting: true,
|
|
@@ -1240,7 +1244,8 @@ const googleGenConfigSchema = zod.z.object({
|
|
|
1240
1244
|
thinkingBudget: coerceNumber.optional(),
|
|
1241
1245
|
thinkingLevel: zod.z.string().optional()
|
|
1242
1246
|
}).optional(),
|
|
1243
|
-
web_search: zod.z.boolean().optional()
|
|
1247
|
+
web_search: zod.z.boolean().optional(),
|
|
1248
|
+
url_context: zod.z.boolean().optional()
|
|
1244
1249
|
}).strip().optional();
|
|
1245
1250
|
function removeNullishValues(obj, removeEmptyStrings) {
|
|
1246
1251
|
const newObj = { ...obj };
|
|
@@ -2465,6 +2470,7 @@ const messagesArtifacts = (messageId) => `${messagesRoot}/artifact/${messageId}`
|
|
|
2465
2470
|
const messagesBranch = () => `${messagesRoot}/branch`;
|
|
2466
2471
|
const shareRoot = `${BASE_URL}/api/share`;
|
|
2467
2472
|
const shareMessages = (shareId) => `${shareRoot}/${shareId}`;
|
|
2473
|
+
const sharedStartupConfig = (shareId) => `${shareMessages(shareId)}/config`;
|
|
2468
2474
|
const getSharedLink$1 = (conversationId) => `${shareRoot}/link/${conversationId}`;
|
|
2469
2475
|
const getSharedLinks = (pageSize, sortBy, sortDirection, search, cursor) => `${shareRoot}?pageSize=${pageSize}&sortBy=${sortBy}&sortDirection=${sortDirection}${search ? `&search=${search}` : ""}${cursor ? `&cursor=${cursor}` : ""}`;
|
|
2470
2476
|
const createSharedLink$1 = (conversationId) => `${shareRoot}/${conversationId}`;
|
|
@@ -3634,6 +3640,10 @@ const endpointSchema = baseEndpointSchema.merge(zod.z.object({
|
|
|
3634
3640
|
defaultParamsEndpoint: zod.z.string().default("custom"),
|
|
3635
3641
|
reasoningFormat: eReasoningParameterFormatSchema.optional(),
|
|
3636
3642
|
reasoningKey: eReasoningResponseKeySchema.optional(),
|
|
3643
|
+
/** Replays `reasoning_content` within a run's tool-call turns (e.g. Xiaomi MiMo, Kimi). */
|
|
3644
|
+
includeReasoningContent: zod.z.boolean().optional(),
|
|
3645
|
+
/** Also reconstructs `reasoning_content` from persisted history across turns (implies `includeReasoningContent`). */
|
|
3646
|
+
includeReasoningHistory: zod.z.boolean().optional(),
|
|
3637
3647
|
paramDefinitions: zod.z.array(paramDefinitionSchema).optional()
|
|
3638
3648
|
}).strict().optional(),
|
|
3639
3649
|
directEndpoint: zod.z.boolean().optional(),
|
|
@@ -4921,7 +4931,7 @@ let TTSProviders = /* @__PURE__ */ function(TTSProviders) {
|
|
|
4921
4931
|
/** Enum for app-wide constants */
|
|
4922
4932
|
let Constants = /* @__PURE__ */ function(Constants) {
|
|
4923
4933
|
/**
|
|
4924
|
-
* Key for the app's version. The placeholder `v0.8.7
|
|
4934
|
+
* Key for the app's version. The placeholder `v0.8.7` is
|
|
4925
4935
|
* swapped in by `@rollup/plugin-replace` during `npm run build:data-provider`
|
|
4926
4936
|
* using the value of the root `package.json`'s `version` field. Consumers
|
|
4927
4937
|
* always import this via the built dist bundle (see `main` field in
|
|
@@ -4929,7 +4939,7 @@ let Constants = /* @__PURE__ */ function(Constants) {
|
|
|
4929
4939
|
* substituted value. Only tests that import the TypeScript source directly
|
|
4930
4940
|
* would observe the raw placeholder.
|
|
4931
4941
|
*/
|
|
4932
|
-
Constants["VERSION"] = "v0.8.7
|
|
4942
|
+
Constants["VERSION"] = "v0.8.7";
|
|
4933
4943
|
/** Key for the Custom Config's version (librechat.yaml). */
|
|
4934
4944
|
Constants["CONFIG_VERSION"] = "1.3.13";
|
|
4935
4945
|
/** Standard value for the first message's `parentMessageId` value, to indicate no parent exists. */
|
|
@@ -5347,6 +5357,7 @@ function hasPermissions(permissions, requiredPermission) {
|
|
|
5347
5357
|
let QueryKeys = /* @__PURE__ */ function(QueryKeys) {
|
|
5348
5358
|
QueryKeys["messages"] = "messages";
|
|
5349
5359
|
QueryKeys["sharedMessages"] = "sharedMessages";
|
|
5360
|
+
QueryKeys["sharedStartupConfig"] = "sharedStartupConfig";
|
|
5350
5361
|
QueryKeys["sharedLinks"] = "sharedLinks";
|
|
5351
5362
|
QueryKeys["allConversations"] = "allConversations";
|
|
5352
5363
|
QueryKeys["archivedConversations"] = "archivedConversations";
|
|
@@ -5804,6 +5815,7 @@ var data_service_exports = /* @__PURE__ */ __exportAll({
|
|
|
5804
5815
|
getSharedFilePreview: () => getSharedFilePreview,
|
|
5805
5816
|
getSharedLink: () => getSharedLink,
|
|
5806
5817
|
getSharedMessages: () => getSharedMessages,
|
|
5818
|
+
getSharedStartupConfig: () => getSharedStartupConfig,
|
|
5807
5819
|
getSkill: () => getSkill,
|
|
5808
5820
|
getSkillFavorites: () => getSkillFavorites,
|
|
5809
5821
|
getSkillFileContent: () => getSkillFileContent,
|
|
@@ -5932,6 +5944,9 @@ function updateSkillStates(skillStates$1) {
|
|
|
5932
5944
|
function getSharedMessages(shareId) {
|
|
5933
5945
|
return request_default.get(shareMessages(shareId));
|
|
5934
5946
|
}
|
|
5947
|
+
function getSharedStartupConfig(shareId) {
|
|
5948
|
+
return request_default.get(sharedStartupConfig(shareId));
|
|
5949
|
+
}
|
|
5935
5950
|
const listSharedLinks = async (params) => {
|
|
5936
5951
|
const { pageSize, sortBy, sortDirection, search, cursor } = params;
|
|
5937
5952
|
return request_default.get(getSharedLinks(pageSize, sortBy, sortDirection, search, cursor));
|
|
@@ -8680,4 +8695,4 @@ Object.defineProperty(exports, "webSearchSchema", {
|
|
|
8680
8695
|
}
|
|
8681
8696
|
});
|
|
8682
8697
|
|
|
8683
|
-
//# sourceMappingURL=data-service-
|
|
8698
|
+
//# sourceMappingURL=data-service-XTxx76uB.js.map
|