librechat-data-provider 0.8.508 → 0.8.521
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-DN-HeTC-.js → data-service-DOIF4BkW.js} +1211 -92
- package/dist/data-service-DOIF4BkW.js.map +1 -0
- package/dist/{data-service-DgNwjhBS.mjs → data-service-pwrlWjJs.mjs} +1062 -93
- package/dist/data-service-pwrlWjJs.mjs.map +1 -0
- package/dist/index.js +472 -57
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +440 -58
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +1 -1
- package/dist/react-query/index.js.map +1 -1
- package/dist/react-query/index.mjs +1 -1
- package/dist/react-query/index.mjs.map +1 -1
- package/dist/types/actions.d.ts +1 -1
- package/dist/types/api-endpoints.d.ts +11 -2
- package/dist/types/bedrock.d.ts +57 -0
- package/dist/types/config.d.ts +4230 -183
- package/dist/types/data-service.d.ts +28 -14
- package/dist/types/feedback.d.ts +9 -1
- package/dist/types/file-config.d.ts +41 -5
- package/dist/types/generate.d.ts +8 -0
- package/dist/types/keys.d.ts +7 -2
- package/dist/types/mcp.d.ts +45 -24
- package/dist/types/messages.d.ts +8 -0
- package/dist/types/models.d.ts +120 -0
- package/dist/types/parameterSettings.d.ts +2 -2
- package/dist/types/parsers.d.ts +3 -1
- package/dist/types/react-query/react-query-service.d.ts +2 -7
- package/dist/types/request.d.ts +3 -1
- package/dist/types/schemas.d.ts +211 -11
- package/dist/types/types/agents.d.ts +211 -1
- package/dist/types/types/assistants.d.ts +77 -5
- package/dist/types/types/files.d.ts +18 -7
- package/dist/types/types/mcpServers.d.ts +25 -0
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types/queries.d.ts +17 -3
- package/dist/types/types/runs.d.ts +114 -25
- package/dist/types/types/skills.d.ts +25 -6
- package/dist/types/types.d.ts +117 -2
- package/dist/types/upload.d.ts +2 -0
- package/package.json +4 -4
- package/dist/data-service-DN-HeTC-.js.map +0 -1
- package/dist/data-service-DgNwjhBS.mjs.map +0 -1
package/dist/types/messages.d.ts
CHANGED
|
@@ -4,6 +4,14 @@ export type ParentMessage = TMessage & {
|
|
|
4
4
|
children: TMessage[];
|
|
5
5
|
depth: number;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* Builds the render tree from the flat messages array. Order-robust: live
|
|
9
|
+
* stream/steer/preempt cache writes can momentarily place a child before its
|
|
10
|
+
* parent, and a single-pass link would hoist such rows into phantom root
|
|
11
|
+
* branches — folding the visible thread to one dangling branch until a
|
|
12
|
+
* refetch restores creation order. Linking happens only after every message
|
|
13
|
+
* is indexed, so array order never changes the tree shape.
|
|
14
|
+
*/
|
|
7
15
|
export declare function buildTree({ messages, fileMap, }: {
|
|
8
16
|
messages: (TMessage | undefined)[] | null;
|
|
9
17
|
fileMap?: Record<string, TFile>;
|
package/dist/types/models.d.ts
CHANGED
|
@@ -29,6 +29,14 @@ export type TModelSpec = {
|
|
|
29
29
|
showOnLanding?: boolean;
|
|
30
30
|
/** Conversation starter prompts shown on the chat landing while this spec is active. */
|
|
31
31
|
conversation_starters?: string[];
|
|
32
|
+
/**
|
|
33
|
+
* When false, the spec is omitted from the model selector menu and from the
|
|
34
|
+
* client startup config, but remains usable when invoked explicitly by name
|
|
35
|
+
* via the `spec` field (server-side resolution uses the full, unfiltered list).
|
|
36
|
+
* Unlike `showIconInMenu` (which only hides the icon), this hides the whole entry.
|
|
37
|
+
* Defaults to true (listed).
|
|
38
|
+
*/
|
|
39
|
+
showInMenu?: boolean;
|
|
32
40
|
iconURL?: string | EModelEndpoint;
|
|
33
41
|
authType?: AuthType;
|
|
34
42
|
/** Hide the chat input tool badge row while this model spec is active. */
|
|
@@ -36,6 +44,30 @@ export type TModelSpec = {
|
|
|
36
44
|
webSearch?: boolean;
|
|
37
45
|
fileSearch?: boolean;
|
|
38
46
|
executeCode?: boolean;
|
|
47
|
+
memory?: boolean;
|
|
48
|
+
/** Equip the spec's ephemeral agent with the `ask_user_question` HITL tool. */
|
|
49
|
+
askUserQuestion?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Let the model dispatch tool calls in the background (poll results via
|
|
52
|
+
* `check_background_task`). Code execution is background-NATIVE: when the
|
|
53
|
+
* admin enables the `run_in_background` agent capability, an
|
|
54
|
+
* `executeCode: true` spec backgrounds code with no flag here. `true` opts
|
|
55
|
+
* in every other eligible tool; a string array opts in only the named
|
|
56
|
+
* tools, matched against the spec's resolved tool ids (e.g.
|
|
57
|
+
* `['slow_report_mcp_analytics']`; `execute_code` and `bash_tool` both
|
|
58
|
+
* select the code pair). `false`, the empty list, or a list that omits the
|
|
59
|
+
* code pair explicitly opts it back out. Requires the `run_in_background`
|
|
60
|
+
* agent capability.
|
|
61
|
+
*/
|
|
62
|
+
runInBackground?: boolean | string[];
|
|
63
|
+
/**
|
|
64
|
+
* Inject the `intent` label param so each call streams a live status label.
|
|
65
|
+
* `true` opts in every eligible tool; a string array opts in only the named
|
|
66
|
+
* tools, matched against the spec's resolved tool ids (e.g.
|
|
67
|
+
* `['web_search', 'search_code_mcp_github']`). Requires the `tool_intents`
|
|
68
|
+
* agent capability to be enabled by the admin.
|
|
69
|
+
*/
|
|
70
|
+
describeIntent?: boolean | string[];
|
|
39
71
|
artifacts?: string | boolean;
|
|
40
72
|
mcpServers?: string[];
|
|
41
73
|
skills?: boolean | string[];
|
|
@@ -64,6 +96,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
64
96
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
65
97
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
66
98
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
67
100
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
68
101
|
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
69
102
|
name: z.ZodString;
|
|
@@ -183,11 +216,14 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
183
216
|
imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ImageDetail>>;
|
|
184
217
|
reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningEffort>>>;
|
|
185
218
|
reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningSummary>>>;
|
|
219
|
+
reasoning_mode: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningMode>>>;
|
|
220
|
+
reasoning_context: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningContext>>>;
|
|
186
221
|
verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").Verbosity>>>;
|
|
187
222
|
useResponsesApi: z.ZodOptional<z.ZodBoolean>;
|
|
188
223
|
effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").AnthropicEffort>>>;
|
|
189
224
|
thinkingDisplay: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ThinkingDisplay>>>;
|
|
190
225
|
web_search: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
url_context: z.ZodOptional<z.ZodBoolean>;
|
|
191
227
|
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
192
228
|
assistant_id: z.ZodOptional<z.ZodString>;
|
|
193
229
|
agent_id: z.ZodOptional<z.ZodString>;
|
|
@@ -267,6 +303,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
267
303
|
model?: string | null | undefined;
|
|
268
304
|
endpointType?: EModelEndpoint | null | undefined;
|
|
269
305
|
pinned?: boolean | undefined;
|
|
306
|
+
isShared?: boolean | undefined;
|
|
270
307
|
tools?: string[] | {
|
|
271
308
|
name: string;
|
|
272
309
|
pluginKey: string;
|
|
@@ -317,11 +354,14 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
317
354
|
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
318
355
|
reasoning_effort?: import("./schemas").ReasoningEffort | null | undefined;
|
|
319
356
|
reasoning_summary?: import("./schemas").ReasoningSummary | null | undefined;
|
|
357
|
+
reasoning_mode?: import("./schemas").ReasoningMode | null | undefined;
|
|
358
|
+
reasoning_context?: import("./schemas").ReasoningContext | null | undefined;
|
|
320
359
|
verbosity?: import("./schemas").Verbosity | null | undefined;
|
|
321
360
|
useResponsesApi?: boolean | undefined;
|
|
322
361
|
effort?: import("./schemas").AnthropicEffort | null | undefined;
|
|
323
362
|
thinkingDisplay?: import("./schemas").ThinkingDisplay | null | undefined;
|
|
324
363
|
web_search?: boolean | undefined;
|
|
364
|
+
url_context?: boolean | undefined;
|
|
325
365
|
disableStreaming?: boolean | undefined;
|
|
326
366
|
assistant_id?: string | undefined;
|
|
327
367
|
agent_id?: string | undefined;
|
|
@@ -365,6 +405,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
365
405
|
model?: string | null | undefined;
|
|
366
406
|
endpointType?: EModelEndpoint | null | undefined;
|
|
367
407
|
pinned?: boolean | undefined;
|
|
408
|
+
isShared?: boolean | undefined;
|
|
368
409
|
tools?: string[] | {
|
|
369
410
|
name: string;
|
|
370
411
|
pluginKey: string;
|
|
@@ -415,11 +456,14 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
415
456
|
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
416
457
|
reasoning_effort?: import("./schemas").ReasoningEffort | null | undefined;
|
|
417
458
|
reasoning_summary?: import("./schemas").ReasoningSummary | null | undefined;
|
|
459
|
+
reasoning_mode?: import("./schemas").ReasoningMode | null | undefined;
|
|
460
|
+
reasoning_context?: import("./schemas").ReasoningContext | null | undefined;
|
|
418
461
|
verbosity?: import("./schemas").Verbosity | null | undefined;
|
|
419
462
|
useResponsesApi?: boolean | undefined;
|
|
420
463
|
effort?: import("./schemas").AnthropicEffort | null | undefined;
|
|
421
464
|
thinkingDisplay?: import("./schemas").ThinkingDisplay | null | undefined;
|
|
422
465
|
web_search?: boolean | undefined;
|
|
466
|
+
url_context?: boolean | undefined;
|
|
423
467
|
disableStreaming?: boolean | undefined;
|
|
424
468
|
assistant_id?: string | undefined;
|
|
425
469
|
agent_id?: string | undefined;
|
|
@@ -469,12 +513,17 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
469
513
|
showIconInHeader: z.ZodOptional<z.ZodBoolean>;
|
|
470
514
|
showOnLanding: z.ZodOptional<z.ZodBoolean>;
|
|
471
515
|
conversation_starters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
516
|
+
showInMenu: z.ZodOptional<z.ZodBoolean>;
|
|
472
517
|
iconURL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<typeof EModelEndpoint>]>>;
|
|
473
518
|
authType: z.ZodOptional<z.ZodNativeEnum<typeof AuthType>>;
|
|
474
519
|
hideBadgeRow: z.ZodOptional<z.ZodBoolean>;
|
|
475
520
|
webSearch: z.ZodOptional<z.ZodBoolean>;
|
|
476
521
|
fileSearch: z.ZodOptional<z.ZodBoolean>;
|
|
477
522
|
executeCode: z.ZodOptional<z.ZodBoolean>;
|
|
523
|
+
memory: z.ZodOptional<z.ZodBoolean>;
|
|
524
|
+
askUserQuestion: z.ZodOptional<z.ZodBoolean>;
|
|
525
|
+
runInBackground: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
526
|
+
describeIntent: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
478
527
|
artifacts: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
479
528
|
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
480
529
|
skills: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -499,6 +548,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
499
548
|
model?: string | null | undefined;
|
|
500
549
|
endpointType?: EModelEndpoint | null | undefined;
|
|
501
550
|
pinned?: boolean | undefined;
|
|
551
|
+
isShared?: boolean | undefined;
|
|
502
552
|
tools?: string[] | {
|
|
503
553
|
name: string;
|
|
504
554
|
pluginKey: string;
|
|
@@ -549,11 +599,14 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
549
599
|
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
550
600
|
reasoning_effort?: import("./schemas").ReasoningEffort | null | undefined;
|
|
551
601
|
reasoning_summary?: import("./schemas").ReasoningSummary | null | undefined;
|
|
602
|
+
reasoning_mode?: import("./schemas").ReasoningMode | null | undefined;
|
|
603
|
+
reasoning_context?: import("./schemas").ReasoningContext | null | undefined;
|
|
552
604
|
verbosity?: import("./schemas").Verbosity | null | undefined;
|
|
553
605
|
useResponsesApi?: boolean | undefined;
|
|
554
606
|
effort?: import("./schemas").AnthropicEffort | null | undefined;
|
|
555
607
|
thinkingDisplay?: import("./schemas").ThinkingDisplay | null | undefined;
|
|
556
608
|
web_search?: boolean | undefined;
|
|
609
|
+
url_context?: boolean | undefined;
|
|
557
610
|
disableStreaming?: boolean | undefined;
|
|
558
611
|
assistant_id?: string | undefined;
|
|
559
612
|
agent_id?: string | undefined;
|
|
@@ -605,11 +658,16 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
605
658
|
showIconInHeader?: boolean | undefined;
|
|
606
659
|
showOnLanding?: boolean | undefined;
|
|
607
660
|
conversation_starters?: string[] | undefined;
|
|
661
|
+
showInMenu?: boolean | undefined;
|
|
608
662
|
authType?: AuthType | undefined;
|
|
609
663
|
hideBadgeRow?: boolean | undefined;
|
|
610
664
|
webSearch?: boolean | undefined;
|
|
611
665
|
fileSearch?: boolean | undefined;
|
|
612
666
|
executeCode?: boolean | undefined;
|
|
667
|
+
memory?: boolean | undefined;
|
|
668
|
+
askUserQuestion?: boolean | undefined;
|
|
669
|
+
runInBackground?: boolean | string[] | undefined;
|
|
670
|
+
describeIntent?: boolean | string[] | undefined;
|
|
613
671
|
mcpServers?: string[] | undefined;
|
|
614
672
|
skills?: boolean | string[] | undefined;
|
|
615
673
|
subagents?: {
|
|
@@ -625,6 +683,7 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
625
683
|
model?: string | null | undefined;
|
|
626
684
|
endpointType?: EModelEndpoint | null | undefined;
|
|
627
685
|
pinned?: boolean | undefined;
|
|
686
|
+
isShared?: boolean | undefined;
|
|
628
687
|
tools?: string[] | {
|
|
629
688
|
name: string;
|
|
630
689
|
pluginKey: string;
|
|
@@ -675,11 +734,14 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
675
734
|
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
676
735
|
reasoning_effort?: import("./schemas").ReasoningEffort | null | undefined;
|
|
677
736
|
reasoning_summary?: import("./schemas").ReasoningSummary | null | undefined;
|
|
737
|
+
reasoning_mode?: import("./schemas").ReasoningMode | null | undefined;
|
|
738
|
+
reasoning_context?: import("./schemas").ReasoningContext | null | undefined;
|
|
678
739
|
verbosity?: import("./schemas").Verbosity | null | undefined;
|
|
679
740
|
useResponsesApi?: boolean | undefined;
|
|
680
741
|
effort?: import("./schemas").AnthropicEffort | null | undefined;
|
|
681
742
|
thinkingDisplay?: import("./schemas").ThinkingDisplay | null | undefined;
|
|
682
743
|
web_search?: boolean | undefined;
|
|
744
|
+
url_context?: boolean | undefined;
|
|
683
745
|
disableStreaming?: boolean | undefined;
|
|
684
746
|
assistant_id?: string | undefined;
|
|
685
747
|
agent_id?: string | undefined;
|
|
@@ -731,11 +793,16 @@ export declare const tModelSpecSchema: z.ZodObject<{
|
|
|
731
793
|
showIconInHeader?: boolean | undefined;
|
|
732
794
|
showOnLanding?: boolean | undefined;
|
|
733
795
|
conversation_starters?: string[] | undefined;
|
|
796
|
+
showInMenu?: boolean | undefined;
|
|
734
797
|
authType?: AuthType | undefined;
|
|
735
798
|
hideBadgeRow?: boolean | undefined;
|
|
736
799
|
webSearch?: boolean | undefined;
|
|
737
800
|
fileSearch?: boolean | undefined;
|
|
738
801
|
executeCode?: boolean | undefined;
|
|
802
|
+
memory?: boolean | undefined;
|
|
803
|
+
askUserQuestion?: boolean | undefined;
|
|
804
|
+
runInBackground?: boolean | string[] | undefined;
|
|
805
|
+
describeIntent?: boolean | string[] | undefined;
|
|
739
806
|
mcpServers?: string[] | undefined;
|
|
740
807
|
skills?: boolean | string[] | undefined;
|
|
741
808
|
subagents?: {
|
|
@@ -757,6 +824,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
757
824
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
758
825
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
759
826
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
827
|
+
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
760
828
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
761
829
|
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
762
830
|
name: z.ZodString;
|
|
@@ -876,11 +944,14 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
876
944
|
imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ImageDetail>>;
|
|
877
945
|
reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningEffort>>>;
|
|
878
946
|
reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningSummary>>>;
|
|
947
|
+
reasoning_mode: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningMode>>>;
|
|
948
|
+
reasoning_context: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningContext>>>;
|
|
879
949
|
verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").Verbosity>>>;
|
|
880
950
|
useResponsesApi: z.ZodOptional<z.ZodBoolean>;
|
|
881
951
|
effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").AnthropicEffort>>>;
|
|
882
952
|
thinkingDisplay: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ThinkingDisplay>>>;
|
|
883
953
|
web_search: z.ZodOptional<z.ZodBoolean>;
|
|
954
|
+
url_context: z.ZodOptional<z.ZodBoolean>;
|
|
884
955
|
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
885
956
|
assistant_id: z.ZodOptional<z.ZodString>;
|
|
886
957
|
agent_id: z.ZodOptional<z.ZodString>;
|
|
@@ -960,6 +1031,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
960
1031
|
model?: string | null | undefined;
|
|
961
1032
|
endpointType?: EModelEndpoint | null | undefined;
|
|
962
1033
|
pinned?: boolean | undefined;
|
|
1034
|
+
isShared?: boolean | undefined;
|
|
963
1035
|
tools?: string[] | {
|
|
964
1036
|
name: string;
|
|
965
1037
|
pluginKey: string;
|
|
@@ -1010,11 +1082,14 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1010
1082
|
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
1011
1083
|
reasoning_effort?: import("./schemas").ReasoningEffort | null | undefined;
|
|
1012
1084
|
reasoning_summary?: import("./schemas").ReasoningSummary | null | undefined;
|
|
1085
|
+
reasoning_mode?: import("./schemas").ReasoningMode | null | undefined;
|
|
1086
|
+
reasoning_context?: import("./schemas").ReasoningContext | null | undefined;
|
|
1013
1087
|
verbosity?: import("./schemas").Verbosity | null | undefined;
|
|
1014
1088
|
useResponsesApi?: boolean | undefined;
|
|
1015
1089
|
effort?: import("./schemas").AnthropicEffort | null | undefined;
|
|
1016
1090
|
thinkingDisplay?: import("./schemas").ThinkingDisplay | null | undefined;
|
|
1017
1091
|
web_search?: boolean | undefined;
|
|
1092
|
+
url_context?: boolean | undefined;
|
|
1018
1093
|
disableStreaming?: boolean | undefined;
|
|
1019
1094
|
assistant_id?: string | undefined;
|
|
1020
1095
|
agent_id?: string | undefined;
|
|
@@ -1058,6 +1133,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1058
1133
|
model?: string | null | undefined;
|
|
1059
1134
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1060
1135
|
pinned?: boolean | undefined;
|
|
1136
|
+
isShared?: boolean | undefined;
|
|
1061
1137
|
tools?: string[] | {
|
|
1062
1138
|
name: string;
|
|
1063
1139
|
pluginKey: string;
|
|
@@ -1108,11 +1184,14 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1108
1184
|
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
1109
1185
|
reasoning_effort?: import("./schemas").ReasoningEffort | null | undefined;
|
|
1110
1186
|
reasoning_summary?: import("./schemas").ReasoningSummary | null | undefined;
|
|
1187
|
+
reasoning_mode?: import("./schemas").ReasoningMode | null | undefined;
|
|
1188
|
+
reasoning_context?: import("./schemas").ReasoningContext | null | undefined;
|
|
1111
1189
|
verbosity?: import("./schemas").Verbosity | null | undefined;
|
|
1112
1190
|
useResponsesApi?: boolean | undefined;
|
|
1113
1191
|
effort?: import("./schemas").AnthropicEffort | null | undefined;
|
|
1114
1192
|
thinkingDisplay?: import("./schemas").ThinkingDisplay | null | undefined;
|
|
1115
1193
|
web_search?: boolean | undefined;
|
|
1194
|
+
url_context?: boolean | undefined;
|
|
1116
1195
|
disableStreaming?: boolean | undefined;
|
|
1117
1196
|
assistant_id?: string | undefined;
|
|
1118
1197
|
agent_id?: string | undefined;
|
|
@@ -1162,12 +1241,17 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1162
1241
|
showIconInHeader: z.ZodOptional<z.ZodBoolean>;
|
|
1163
1242
|
showOnLanding: z.ZodOptional<z.ZodBoolean>;
|
|
1164
1243
|
conversation_starters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1244
|
+
showInMenu: z.ZodOptional<z.ZodBoolean>;
|
|
1165
1245
|
iconURL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<typeof EModelEndpoint>]>>;
|
|
1166
1246
|
authType: z.ZodOptional<z.ZodNativeEnum<typeof AuthType>>;
|
|
1167
1247
|
hideBadgeRow: z.ZodOptional<z.ZodBoolean>;
|
|
1168
1248
|
webSearch: z.ZodOptional<z.ZodBoolean>;
|
|
1169
1249
|
fileSearch: z.ZodOptional<z.ZodBoolean>;
|
|
1170
1250
|
executeCode: z.ZodOptional<z.ZodBoolean>;
|
|
1251
|
+
memory: z.ZodOptional<z.ZodBoolean>;
|
|
1252
|
+
askUserQuestion: z.ZodOptional<z.ZodBoolean>;
|
|
1253
|
+
runInBackground: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
1254
|
+
describeIntent: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
1171
1255
|
artifacts: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
1172
1256
|
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1173
1257
|
skills: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -1192,6 +1276,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1192
1276
|
model?: string | null | undefined;
|
|
1193
1277
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1194
1278
|
pinned?: boolean | undefined;
|
|
1279
|
+
isShared?: boolean | undefined;
|
|
1195
1280
|
tools?: string[] | {
|
|
1196
1281
|
name: string;
|
|
1197
1282
|
pluginKey: string;
|
|
@@ -1242,11 +1327,14 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1242
1327
|
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
1243
1328
|
reasoning_effort?: import("./schemas").ReasoningEffort | null | undefined;
|
|
1244
1329
|
reasoning_summary?: import("./schemas").ReasoningSummary | null | undefined;
|
|
1330
|
+
reasoning_mode?: import("./schemas").ReasoningMode | null | undefined;
|
|
1331
|
+
reasoning_context?: import("./schemas").ReasoningContext | null | undefined;
|
|
1245
1332
|
verbosity?: import("./schemas").Verbosity | null | undefined;
|
|
1246
1333
|
useResponsesApi?: boolean | undefined;
|
|
1247
1334
|
effort?: import("./schemas").AnthropicEffort | null | undefined;
|
|
1248
1335
|
thinkingDisplay?: import("./schemas").ThinkingDisplay | null | undefined;
|
|
1249
1336
|
web_search?: boolean | undefined;
|
|
1337
|
+
url_context?: boolean | undefined;
|
|
1250
1338
|
disableStreaming?: boolean | undefined;
|
|
1251
1339
|
assistant_id?: string | undefined;
|
|
1252
1340
|
agent_id?: string | undefined;
|
|
@@ -1298,11 +1386,16 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1298
1386
|
showIconInHeader?: boolean | undefined;
|
|
1299
1387
|
showOnLanding?: boolean | undefined;
|
|
1300
1388
|
conversation_starters?: string[] | undefined;
|
|
1389
|
+
showInMenu?: boolean | undefined;
|
|
1301
1390
|
authType?: AuthType | undefined;
|
|
1302
1391
|
hideBadgeRow?: boolean | undefined;
|
|
1303
1392
|
webSearch?: boolean | undefined;
|
|
1304
1393
|
fileSearch?: boolean | undefined;
|
|
1305
1394
|
executeCode?: boolean | undefined;
|
|
1395
|
+
memory?: boolean | undefined;
|
|
1396
|
+
askUserQuestion?: boolean | undefined;
|
|
1397
|
+
runInBackground?: boolean | string[] | undefined;
|
|
1398
|
+
describeIntent?: boolean | string[] | undefined;
|
|
1306
1399
|
mcpServers?: string[] | undefined;
|
|
1307
1400
|
skills?: boolean | string[] | undefined;
|
|
1308
1401
|
subagents?: {
|
|
@@ -1318,6 +1411,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1318
1411
|
model?: string | null | undefined;
|
|
1319
1412
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1320
1413
|
pinned?: boolean | undefined;
|
|
1414
|
+
isShared?: boolean | undefined;
|
|
1321
1415
|
tools?: string[] | {
|
|
1322
1416
|
name: string;
|
|
1323
1417
|
pluginKey: string;
|
|
@@ -1368,11 +1462,14 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1368
1462
|
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
1369
1463
|
reasoning_effort?: import("./schemas").ReasoningEffort | null | undefined;
|
|
1370
1464
|
reasoning_summary?: import("./schemas").ReasoningSummary | null | undefined;
|
|
1465
|
+
reasoning_mode?: import("./schemas").ReasoningMode | null | undefined;
|
|
1466
|
+
reasoning_context?: import("./schemas").ReasoningContext | null | undefined;
|
|
1371
1467
|
verbosity?: import("./schemas").Verbosity | null | undefined;
|
|
1372
1468
|
useResponsesApi?: boolean | undefined;
|
|
1373
1469
|
effort?: import("./schemas").AnthropicEffort | null | undefined;
|
|
1374
1470
|
thinkingDisplay?: import("./schemas").ThinkingDisplay | null | undefined;
|
|
1375
1471
|
web_search?: boolean | undefined;
|
|
1472
|
+
url_context?: boolean | undefined;
|
|
1376
1473
|
disableStreaming?: boolean | undefined;
|
|
1377
1474
|
assistant_id?: string | undefined;
|
|
1378
1475
|
agent_id?: string | undefined;
|
|
@@ -1424,11 +1521,16 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1424
1521
|
showIconInHeader?: boolean | undefined;
|
|
1425
1522
|
showOnLanding?: boolean | undefined;
|
|
1426
1523
|
conversation_starters?: string[] | undefined;
|
|
1524
|
+
showInMenu?: boolean | undefined;
|
|
1427
1525
|
authType?: AuthType | undefined;
|
|
1428
1526
|
hideBadgeRow?: boolean | undefined;
|
|
1429
1527
|
webSearch?: boolean | undefined;
|
|
1430
1528
|
fileSearch?: boolean | undefined;
|
|
1431
1529
|
executeCode?: boolean | undefined;
|
|
1530
|
+
memory?: boolean | undefined;
|
|
1531
|
+
askUserQuestion?: boolean | undefined;
|
|
1532
|
+
runInBackground?: boolean | string[] | undefined;
|
|
1533
|
+
describeIntent?: boolean | string[] | undefined;
|
|
1432
1534
|
mcpServers?: string[] | undefined;
|
|
1433
1535
|
skills?: boolean | string[] | undefined;
|
|
1434
1536
|
subagents?: {
|
|
@@ -1449,6 +1551,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1449
1551
|
model?: string | null | undefined;
|
|
1450
1552
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1451
1553
|
pinned?: boolean | undefined;
|
|
1554
|
+
isShared?: boolean | undefined;
|
|
1452
1555
|
tools?: string[] | {
|
|
1453
1556
|
name: string;
|
|
1454
1557
|
pluginKey: string;
|
|
@@ -1499,11 +1602,14 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1499
1602
|
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
1500
1603
|
reasoning_effort?: import("./schemas").ReasoningEffort | null | undefined;
|
|
1501
1604
|
reasoning_summary?: import("./schemas").ReasoningSummary | null | undefined;
|
|
1605
|
+
reasoning_mode?: import("./schemas").ReasoningMode | null | undefined;
|
|
1606
|
+
reasoning_context?: import("./schemas").ReasoningContext | null | undefined;
|
|
1502
1607
|
verbosity?: import("./schemas").Verbosity | null | undefined;
|
|
1503
1608
|
useResponsesApi?: boolean | undefined;
|
|
1504
1609
|
effort?: import("./schemas").AnthropicEffort | null | undefined;
|
|
1505
1610
|
thinkingDisplay?: import("./schemas").ThinkingDisplay | null | undefined;
|
|
1506
1611
|
web_search?: boolean | undefined;
|
|
1612
|
+
url_context?: boolean | undefined;
|
|
1507
1613
|
disableStreaming?: boolean | undefined;
|
|
1508
1614
|
assistant_id?: string | undefined;
|
|
1509
1615
|
agent_id?: string | undefined;
|
|
@@ -1555,11 +1661,16 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1555
1661
|
showIconInHeader?: boolean | undefined;
|
|
1556
1662
|
showOnLanding?: boolean | undefined;
|
|
1557
1663
|
conversation_starters?: string[] | undefined;
|
|
1664
|
+
showInMenu?: boolean | undefined;
|
|
1558
1665
|
authType?: AuthType | undefined;
|
|
1559
1666
|
hideBadgeRow?: boolean | undefined;
|
|
1560
1667
|
webSearch?: boolean | undefined;
|
|
1561
1668
|
fileSearch?: boolean | undefined;
|
|
1562
1669
|
executeCode?: boolean | undefined;
|
|
1670
|
+
memory?: boolean | undefined;
|
|
1671
|
+
askUserQuestion?: boolean | undefined;
|
|
1672
|
+
runInBackground?: boolean | string[] | undefined;
|
|
1673
|
+
describeIntent?: boolean | string[] | undefined;
|
|
1563
1674
|
mcpServers?: string[] | undefined;
|
|
1564
1675
|
skills?: boolean | string[] | undefined;
|
|
1565
1676
|
subagents?: {
|
|
@@ -1580,6 +1691,7 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1580
1691
|
model?: string | null | undefined;
|
|
1581
1692
|
endpointType?: EModelEndpoint | null | undefined;
|
|
1582
1693
|
pinned?: boolean | undefined;
|
|
1694
|
+
isShared?: boolean | undefined;
|
|
1583
1695
|
tools?: string[] | {
|
|
1584
1696
|
name: string;
|
|
1585
1697
|
pluginKey: string;
|
|
@@ -1630,11 +1742,14 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1630
1742
|
imageDetail?: import("./schemas").ImageDetail | undefined;
|
|
1631
1743
|
reasoning_effort?: import("./schemas").ReasoningEffort | null | undefined;
|
|
1632
1744
|
reasoning_summary?: import("./schemas").ReasoningSummary | null | undefined;
|
|
1745
|
+
reasoning_mode?: import("./schemas").ReasoningMode | null | undefined;
|
|
1746
|
+
reasoning_context?: import("./schemas").ReasoningContext | null | undefined;
|
|
1633
1747
|
verbosity?: import("./schemas").Verbosity | null | undefined;
|
|
1634
1748
|
useResponsesApi?: boolean | undefined;
|
|
1635
1749
|
effort?: import("./schemas").AnthropicEffort | null | undefined;
|
|
1636
1750
|
thinkingDisplay?: import("./schemas").ThinkingDisplay | null | undefined;
|
|
1637
1751
|
web_search?: boolean | undefined;
|
|
1752
|
+
url_context?: boolean | undefined;
|
|
1638
1753
|
disableStreaming?: boolean | undefined;
|
|
1639
1754
|
assistant_id?: string | undefined;
|
|
1640
1755
|
agent_id?: string | undefined;
|
|
@@ -1686,11 +1801,16 @@ export declare const specsConfigSchema: z.ZodObject<{
|
|
|
1686
1801
|
showIconInHeader?: boolean | undefined;
|
|
1687
1802
|
showOnLanding?: boolean | undefined;
|
|
1688
1803
|
conversation_starters?: string[] | undefined;
|
|
1804
|
+
showInMenu?: boolean | undefined;
|
|
1689
1805
|
authType?: AuthType | undefined;
|
|
1690
1806
|
hideBadgeRow?: boolean | undefined;
|
|
1691
1807
|
webSearch?: boolean | undefined;
|
|
1692
1808
|
fileSearch?: boolean | undefined;
|
|
1693
1809
|
executeCode?: boolean | undefined;
|
|
1810
|
+
memory?: boolean | undefined;
|
|
1811
|
+
askUserQuestion?: boolean | undefined;
|
|
1812
|
+
runInBackground?: boolean | string[] | undefined;
|
|
1813
|
+
describeIntent?: boolean | string[] | undefined;
|
|
1694
1814
|
mcpServers?: string[] | undefined;
|
|
1695
1815
|
skills?: boolean | string[] | undefined;
|
|
1696
1816
|
subagents?: {
|
|
@@ -17,7 +17,7 @@ export declare const librechat: {
|
|
|
17
17
|
readonly labelCode: true;
|
|
18
18
|
readonly type: "number";
|
|
19
19
|
readonly component: "input";
|
|
20
|
-
readonly placeholder: "
|
|
20
|
+
readonly placeholder: "com_endpoint_default";
|
|
21
21
|
readonly placeholderCode: true;
|
|
22
22
|
readonly description: "com_endpoint_context_info";
|
|
23
23
|
readonly descriptionCode: true;
|
|
@@ -54,7 +54,7 @@ export declare const librechat: {
|
|
|
54
54
|
readonly labelCode: true;
|
|
55
55
|
readonly description: "com_ui_file_token_limit_desc";
|
|
56
56
|
readonly descriptionCode: true;
|
|
57
|
-
readonly placeholder: "
|
|
57
|
+
readonly placeholder: "com_endpoint_default";
|
|
58
58
|
readonly placeholderCode: true;
|
|
59
59
|
readonly type: "number";
|
|
60
60
|
readonly component: "input";
|
package/dist/types/parsers.d.ts
CHANGED
|
@@ -30,7 +30,9 @@ export declare const parseCompactConvo: ({ endpoint, endpointType, conversation,
|
|
|
30
30
|
possibleValues?: TPossibleValues;
|
|
31
31
|
defaultParamsEndpoint?: string | null;
|
|
32
32
|
}) => Omit<s.TConversation, "iconURL"> | null;
|
|
33
|
-
export declare function parseTextParts(contentParts: Array<a.TMessageContentParts | undefined>, skipReasoning?: boolean
|
|
33
|
+
export declare function parseTextParts(contentParts: Array<a.TMessageContentParts | undefined>, skipReasoning?: boolean, options?: {
|
|
34
|
+
includeSteer?: boolean;
|
|
35
|
+
}): string;
|
|
34
36
|
export declare const SEPARATORS: string[];
|
|
35
37
|
export declare function findLastSeparatorIndex(text: string, separators?: string[]): number;
|
|
36
38
|
export declare function replaceSpecialVars({ text, user, now: inputNow, timezone, }: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { UseQueryOptions, UseMutationResult, QueryObserverResult } from '@tanstack/react-query';
|
|
2
|
+
import type { MCPReinitializeResponse } from '../types/mcpServers';
|
|
2
3
|
import { MCPServerConnectionStatusResponse } from '../types/queries';
|
|
3
4
|
import * as permissions from '../accessPermissions';
|
|
4
5
|
import { ResourceType } from '../accessPermissions';
|
|
@@ -29,13 +30,7 @@ export declare const useRequestPasswordResetMutation: () => UseMutationResult<t.
|
|
|
29
30
|
export declare const useResetPasswordMutation: () => UseMutationResult<unknown, unknown, t.TResetPassword, unknown>;
|
|
30
31
|
export declare const useAvailablePluginsQuery: <TData = s.TPlugin[]>(config?: UseQueryOptions<s.TPlugin[], unknown, TData>) => QueryObserverResult<TData>;
|
|
31
32
|
export declare const useUpdateUserPluginsMutation: (_options?: m.UpdatePluginAuthOptions) => UseMutationResult<t.TUser, unknown, t.TUpdateUserPlugins, unknown>;
|
|
32
|
-
export declare const useReinitializeMCPServerMutation: () => UseMutationResult<
|
|
33
|
-
success: boolean;
|
|
34
|
-
message: string;
|
|
35
|
-
serverName: string;
|
|
36
|
-
oauthRequired?: boolean;
|
|
37
|
-
oauthUrl?: string;
|
|
38
|
-
}, unknown, string, unknown>;
|
|
33
|
+
export declare const useReinitializeMCPServerMutation: () => UseMutationResult<MCPReinitializeResponse, unknown, string, unknown>;
|
|
39
34
|
export declare const useCancelMCPOAuthMutation: () => UseMutationResult<m.CancelMCPOAuthResponse, unknown, string, unknown>;
|
|
40
35
|
export declare const useGetCustomConfigSpeechQuery: (config?: UseQueryOptions<t.TCustomConfigSpeechResponse>) => QueryObserverResult<t.TCustomConfigSpeechResponse>;
|
|
41
36
|
export declare const useUpdateFeedbackMutation: (conversationId: string, messageId: string) => UseMutationResult<t.TUpdateFeedbackResponse, Error, t.TUpdateFeedbackRequest>;
|
package/dist/types/request.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from 'axios';
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
2
|
import type * as t from './types';
|
|
3
3
|
declare function _get<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
|
|
4
4
|
declare function _getResponse<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
|
|
@@ -9,6 +9,7 @@ declare function _put(url: string, data?: any): Promise<any>;
|
|
|
9
9
|
declare function _delete<T>(url: string): Promise<T>;
|
|
10
10
|
declare function _deleteWithOptions<T>(url: string, options?: AxiosRequestConfig): Promise<T>;
|
|
11
11
|
declare function _patch(url: string, data?: any): Promise<any>;
|
|
12
|
+
declare function _authenticatedFetch(url: string, options?: RequestInit): Promise<Response>;
|
|
12
13
|
declare const _default: {
|
|
13
14
|
get: typeof _get;
|
|
14
15
|
getResponse: typeof _getResponse;
|
|
@@ -19,6 +20,7 @@ declare const _default: {
|
|
|
19
20
|
delete: typeof _delete;
|
|
20
21
|
deleteWithOptions: typeof _deleteWithOptions;
|
|
21
22
|
patch: typeof _patch;
|
|
23
|
+
authenticatedFetch: typeof _authenticatedFetch;
|
|
22
24
|
refreshToken: (retry?: boolean) => Promise<t.TRefreshTokenResponse | undefined>;
|
|
23
25
|
dispatchTokenUpdatedEvent: (token: string) => void;
|
|
24
26
|
};
|