librechat-data-provider 0.8.504 → 0.8.506
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{data-service-Dk-uLruo.js → data-service-CCdWvcRd.js} +109 -7
- package/dist/data-service-CCdWvcRd.js.map +1 -0
- package/dist/{data-service-BFGYAHRx.mjs → data-service-D7mtXwG5.mjs} +98 -8
- package/dist/data-service-D7mtXwG5.mjs.map +1 -0
- package/dist/index.js +187 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +181 -51
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +6 -1
- package/dist/react-query/index.js.map +1 -1
- package/dist/react-query/index.mjs +6 -1
- package/dist/react-query/index.mjs.map +1 -1
- package/dist/types/api-endpoints.d.ts +3 -0
- package/dist/types/bedrock.d.ts +20 -5
- package/dist/types/config.d.ts +643 -90
- package/dist/types/data-service.d.ts +4 -0
- package/dist/types/generate.d.ts +4 -0
- package/dist/types/keys.d.ts +4 -1
- package/dist/types/models.d.ts +34 -0
- package/dist/types/parsers.d.ts +2 -1
- package/dist/types/react-query/react-query-service.d.ts +2 -2
- package/dist/types/schemas.d.ts +94 -4
- package/dist/types/types/agents.d.ts +5 -0
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types/runs.d.ts +125 -0
- package/dist/types/types.d.ts +18 -1
- package/package.json +2 -2
- package/dist/data-service-BFGYAHRx.mjs.map +0 -1
- package/dist/data-service-Dk-uLruo.js.map +0 -1
package/dist/types/config.d.ts
CHANGED
|
@@ -582,6 +582,15 @@ export declare const defaultAssistantsVersion: {
|
|
|
582
582
|
export declare const baseEndpointSchema: z.ZodObject<{
|
|
583
583
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
584
584
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
585
|
+
/**
|
|
586
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
587
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
588
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
589
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
590
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
591
|
+
* headers (provider-native request shaping is preserved).
|
|
592
|
+
*/
|
|
593
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
585
594
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
586
595
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
587
596
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -598,6 +607,7 @@ export declare const baseEndpointSchema: z.ZodObject<{
|
|
|
598
607
|
/** Maximum characters allowed in a single tool result before truncation. */
|
|
599
608
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
600
609
|
}, "strip", z.ZodTypeAny, {
|
|
610
|
+
headers?: Record<string, string> | undefined;
|
|
601
611
|
baseURL?: string | undefined;
|
|
602
612
|
streamRate?: number | undefined;
|
|
603
613
|
titlePrompt?: string | undefined;
|
|
@@ -609,6 +619,7 @@ export declare const baseEndpointSchema: z.ZodObject<{
|
|
|
609
619
|
titleTiming?: "immediate" | "final" | undefined;
|
|
610
620
|
maxToolResultChars?: number | undefined;
|
|
611
621
|
}, {
|
|
622
|
+
headers?: Record<string, string> | undefined;
|
|
612
623
|
baseURL?: string | undefined;
|
|
613
624
|
streamRate?: number | undefined;
|
|
614
625
|
titlePrompt?: string | undefined;
|
|
@@ -640,6 +651,15 @@ export declare const bedrockGuardrailConfigSchema: z.ZodObject<{
|
|
|
640
651
|
export declare const bedrockEndpointSchema: z.ZodObject<{
|
|
641
652
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
642
653
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
654
|
+
/**
|
|
655
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
656
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
657
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
658
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
659
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
660
|
+
* headers (provider-native request shaping is preserved).
|
|
661
|
+
*/
|
|
662
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
643
663
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
644
664
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
645
665
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -676,6 +696,7 @@ export declare const bedrockEndpointSchema: z.ZodObject<{
|
|
|
676
696
|
}>>;
|
|
677
697
|
inferenceProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
678
698
|
}, "strip", z.ZodTypeAny, {
|
|
699
|
+
headers?: Record<string, string> | undefined;
|
|
679
700
|
baseURL?: string | undefined;
|
|
680
701
|
streamRate?: number | undefined;
|
|
681
702
|
titlePrompt?: string | undefined;
|
|
@@ -696,6 +717,7 @@ export declare const bedrockEndpointSchema: z.ZodObject<{
|
|
|
696
717
|
} | undefined;
|
|
697
718
|
inferenceProfiles?: Record<string, string> | undefined;
|
|
698
719
|
}, {
|
|
720
|
+
headers?: Record<string, string> | undefined;
|
|
699
721
|
baseURL?: string | undefined;
|
|
700
722
|
streamRate?: number | undefined;
|
|
701
723
|
titlePrompt?: string | undefined;
|
|
@@ -725,14 +747,7 @@ export declare const assistantEndpointSchema: z.ZodObject<{
|
|
|
725
747
|
titleMethod: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"completion">, z.ZodLiteral<"functions">, z.ZodLiteral<"structured">]>>;
|
|
726
748
|
titleEndpoint: z.ZodOptional<z.ZodString>;
|
|
727
749
|
titlePromptTemplate: z.ZodOptional<z.ZodString>;
|
|
728
|
-
/**
|
|
729
|
-
* When conversation titles are generated. `immediate` (default) generates the
|
|
730
|
-
* title as soon as the request is made, in parallel with the response, from the
|
|
731
|
-
* user's first message. `final` defers generation until the full response
|
|
732
|
-
* completes (legacy behavior).
|
|
733
|
-
*/
|
|
734
750
|
titleTiming: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"immediate">, z.ZodLiteral<"final">]>>;
|
|
735
|
-
/** Maximum characters allowed in a single tool result before truncation. */
|
|
736
751
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
737
752
|
} & {
|
|
738
753
|
disableBuilder: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -841,6 +856,15 @@ export declare function isRemoteOidcUrlAllowed(value: string): boolean;
|
|
|
841
856
|
export declare const agentsEndpointSchema: z.ZodDefault<z.ZodObject<Omit<{
|
|
842
857
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
843
858
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
859
|
+
/**
|
|
860
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
861
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
862
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
863
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
864
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
865
|
+
* headers (provider-native request shaping is preserved).
|
|
866
|
+
*/
|
|
867
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
844
868
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
845
869
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
846
870
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -971,6 +995,7 @@ export declare const agentsEndpointSchema: z.ZodDefault<z.ZodObject<Omit<{
|
|
|
971
995
|
skills?: {
|
|
972
996
|
maxCatalogSkills?: number | undefined;
|
|
973
997
|
} | undefined;
|
|
998
|
+
headers?: Record<string, string> | undefined;
|
|
974
999
|
streamRate?: number | undefined;
|
|
975
1000
|
titlePrompt?: string | undefined;
|
|
976
1001
|
titleModel?: string | undefined;
|
|
@@ -1001,6 +1026,7 @@ export declare const agentsEndpointSchema: z.ZodDefault<z.ZodObject<Omit<{
|
|
|
1001
1026
|
skills?: {
|
|
1002
1027
|
maxCatalogSkills?: number | undefined;
|
|
1003
1028
|
} | undefined;
|
|
1029
|
+
headers?: Record<string, string> | undefined;
|
|
1004
1030
|
streamRate?: number | undefined;
|
|
1005
1031
|
titlePrompt?: string | undefined;
|
|
1006
1032
|
titleModel?: string | undefined;
|
|
@@ -1186,6 +1212,7 @@ export declare const endpointSchema: z.ZodObject<{
|
|
|
1186
1212
|
}>;
|
|
1187
1213
|
iconURL: z.ZodOptional<z.ZodString>;
|
|
1188
1214
|
modelDisplayLabel: z.ZodOptional<z.ZodString>;
|
|
1215
|
+
provider: z.ZodOptional<z.ZodLiteral<EModelEndpoint.anthropic>>;
|
|
1189
1216
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1190
1217
|
addParams: z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>;
|
|
1191
1218
|
dropParams: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1380,6 +1407,25 @@ export declare const endpointSchema: z.ZodObject<{
|
|
|
1380
1407
|
}>>;
|
|
1381
1408
|
directEndpoint: z.ZodOptional<z.ZodBoolean>;
|
|
1382
1409
|
titleMessageRole: z.ZodOptional<z.ZodEnum<["system", "user", "assistant"]>>;
|
|
1410
|
+
tokenConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1411
|
+
prompt: z.ZodNumber;
|
|
1412
|
+
completion: z.ZodNumber;
|
|
1413
|
+
context: z.ZodNumber;
|
|
1414
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
1415
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
1416
|
+
}, "strip", z.ZodTypeAny, {
|
|
1417
|
+
context: number;
|
|
1418
|
+
prompt: number;
|
|
1419
|
+
completion: number;
|
|
1420
|
+
cacheRead?: number | undefined;
|
|
1421
|
+
cacheWrite?: number | undefined;
|
|
1422
|
+
}, {
|
|
1423
|
+
context: number;
|
|
1424
|
+
prompt: number;
|
|
1425
|
+
completion: number;
|
|
1426
|
+
cacheRead?: number | undefined;
|
|
1427
|
+
cacheWrite?: number | undefined;
|
|
1428
|
+
}>>>;
|
|
1383
1429
|
}, "strip", z.ZodTypeAny, {
|
|
1384
1430
|
name: string;
|
|
1385
1431
|
apiKey: string;
|
|
@@ -1394,6 +1440,7 @@ export declare const endpointSchema: z.ZodObject<{
|
|
|
1394
1440
|
};
|
|
1395
1441
|
iconURL?: string | undefined;
|
|
1396
1442
|
headers?: Record<string, string> | undefined;
|
|
1443
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
1397
1444
|
streamRate?: number | undefined;
|
|
1398
1445
|
titlePrompt?: string | undefined;
|
|
1399
1446
|
titleModel?: string | undefined;
|
|
@@ -1447,6 +1494,13 @@ export declare const endpointSchema: z.ZodObject<{
|
|
|
1447
1494
|
} | undefined;
|
|
1448
1495
|
directEndpoint?: boolean | undefined;
|
|
1449
1496
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
1497
|
+
tokenConfig?: Record<string, {
|
|
1498
|
+
context: number;
|
|
1499
|
+
prompt: number;
|
|
1500
|
+
completion: number;
|
|
1501
|
+
cacheRead?: number | undefined;
|
|
1502
|
+
cacheWrite?: number | undefined;
|
|
1503
|
+
}> | undefined;
|
|
1450
1504
|
}, {
|
|
1451
1505
|
name: string;
|
|
1452
1506
|
apiKey: string;
|
|
@@ -1461,6 +1515,7 @@ export declare const endpointSchema: z.ZodObject<{
|
|
|
1461
1515
|
};
|
|
1462
1516
|
iconURL?: string | undefined;
|
|
1463
1517
|
headers?: Record<string, string> | undefined;
|
|
1518
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
1464
1519
|
streamRate?: number | undefined;
|
|
1465
1520
|
titlePrompt?: string | undefined;
|
|
1466
1521
|
titleModel?: string | undefined;
|
|
@@ -1514,6 +1569,13 @@ export declare const endpointSchema: z.ZodObject<{
|
|
|
1514
1569
|
} | undefined;
|
|
1515
1570
|
directEndpoint?: boolean | undefined;
|
|
1516
1571
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
1572
|
+
tokenConfig?: Record<string, {
|
|
1573
|
+
context: number;
|
|
1574
|
+
prompt: number;
|
|
1575
|
+
completion: number;
|
|
1576
|
+
cacheRead?: number | undefined;
|
|
1577
|
+
cacheWrite?: number | undefined;
|
|
1578
|
+
}> | undefined;
|
|
1517
1579
|
}>;
|
|
1518
1580
|
export type TEndpoint = z.infer<typeof endpointSchema>;
|
|
1519
1581
|
export declare const azureEndpointSchema: z.ZodIntersection<z.ZodObject<{
|
|
@@ -1723,6 +1785,15 @@ export type TVertexAIConfig = TVertexAISchema & {
|
|
|
1723
1785
|
export declare const anthropicEndpointSchema: z.ZodObject<{
|
|
1724
1786
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
1725
1787
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
1788
|
+
/**
|
|
1789
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
1790
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
1791
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
1792
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
1793
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
1794
|
+
* headers (provider-native request shaping is preserved).
|
|
1795
|
+
*/
|
|
1796
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1726
1797
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
1727
1798
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
1728
1799
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1782,6 +1853,7 @@ export declare const anthropicEndpointSchema: z.ZodObject<{
|
|
|
1782
1853
|
/** Optional: List of available models */
|
|
1783
1854
|
models: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1784
1855
|
}, "strip", z.ZodTypeAny, {
|
|
1856
|
+
headers?: Record<string, string> | undefined;
|
|
1785
1857
|
baseURL?: string | undefined;
|
|
1786
1858
|
streamRate?: number | undefined;
|
|
1787
1859
|
titlePrompt?: string | undefined;
|
|
@@ -1804,6 +1876,7 @@ export declare const anthropicEndpointSchema: z.ZodObject<{
|
|
|
1804
1876
|
}> | undefined;
|
|
1805
1877
|
} | undefined;
|
|
1806
1878
|
}, {
|
|
1879
|
+
headers?: Record<string, string> | undefined;
|
|
1807
1880
|
baseURL?: string | undefined;
|
|
1808
1881
|
streamRate?: number | undefined;
|
|
1809
1882
|
titlePrompt?: string | undefined;
|
|
@@ -2219,6 +2292,18 @@ export declare const interfaceSchema: z.ZodDefault<z.ZodObject<{
|
|
|
2219
2292
|
retainAgentFiles: z.ZodOptional<z.ZodBoolean>;
|
|
2220
2293
|
runCode: z.ZodOptional<z.ZodBoolean>;
|
|
2221
2294
|
webSearch: z.ZodOptional<z.ZodBoolean>;
|
|
2295
|
+
contextUsage: z.ZodOptional<z.ZodBoolean>;
|
|
2296
|
+
contextCost: z.ZodOptional<z.ZodBoolean>;
|
|
2297
|
+
currency: z.ZodOptional<z.ZodObject<{
|
|
2298
|
+
code: z.ZodString;
|
|
2299
|
+
rate: z.ZodNumber;
|
|
2300
|
+
}, "strip", z.ZodTypeAny, {
|
|
2301
|
+
code: string;
|
|
2302
|
+
rate: number;
|
|
2303
|
+
}, {
|
|
2304
|
+
code: string;
|
|
2305
|
+
rate: number;
|
|
2306
|
+
}>>;
|
|
2222
2307
|
peoplePicker: z.ZodOptional<z.ZodObject<{
|
|
2223
2308
|
users: z.ZodOptional<z.ZodBoolean>;
|
|
2224
2309
|
groups: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2348,6 +2433,12 @@ export declare const interfaceSchema: z.ZodDefault<z.ZodObject<{
|
|
|
2348
2433
|
autoSubmitFromUrl?: boolean | undefined;
|
|
2349
2434
|
retainAgentFiles?: boolean | undefined;
|
|
2350
2435
|
runCode?: boolean | undefined;
|
|
2436
|
+
contextUsage?: boolean | undefined;
|
|
2437
|
+
contextCost?: boolean | undefined;
|
|
2438
|
+
currency?: {
|
|
2439
|
+
code: string;
|
|
2440
|
+
rate: number;
|
|
2441
|
+
} | undefined;
|
|
2351
2442
|
peoplePicker?: {
|
|
2352
2443
|
users?: boolean | undefined;
|
|
2353
2444
|
groups?: boolean | undefined;
|
|
@@ -2427,6 +2518,12 @@ export declare const interfaceSchema: z.ZodDefault<z.ZodObject<{
|
|
|
2427
2518
|
retentionMode?: RetentionMode | undefined;
|
|
2428
2519
|
retainAgentFiles?: boolean | undefined;
|
|
2429
2520
|
runCode?: boolean | undefined;
|
|
2521
|
+
contextUsage?: boolean | undefined;
|
|
2522
|
+
contextCost?: boolean | undefined;
|
|
2523
|
+
currency?: {
|
|
2524
|
+
code: string;
|
|
2525
|
+
rate: number;
|
|
2526
|
+
} | undefined;
|
|
2430
2527
|
peoplePicker?: {
|
|
2431
2528
|
users?: boolean | undefined;
|
|
2432
2529
|
groups?: boolean | undefined;
|
|
@@ -3255,6 +3352,7 @@ declare const customEndpointsSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
|
3255
3352
|
}>>;
|
|
3256
3353
|
iconURL: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3257
3354
|
modelDisplayLabel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3355
|
+
provider: z.ZodOptional<z.ZodOptional<z.ZodLiteral<EModelEndpoint.anthropic>>>;
|
|
3258
3356
|
headers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
3259
3357
|
addParams: z.ZodOptional<z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>>;
|
|
3260
3358
|
dropParams: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -3449,12 +3547,32 @@ declare const customEndpointsSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
|
3449
3547
|
}>>>;
|
|
3450
3548
|
directEndpoint: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3451
3549
|
titleMessageRole: z.ZodOptional<z.ZodOptional<z.ZodEnum<["system", "user", "assistant"]>>>;
|
|
3550
|
+
tokenConfig: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3551
|
+
prompt: z.ZodNumber;
|
|
3552
|
+
completion: z.ZodNumber;
|
|
3553
|
+
context: z.ZodNumber;
|
|
3554
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
3555
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
3556
|
+
}, "strip", z.ZodTypeAny, {
|
|
3557
|
+
context: number;
|
|
3558
|
+
prompt: number;
|
|
3559
|
+
completion: number;
|
|
3560
|
+
cacheRead?: number | undefined;
|
|
3561
|
+
cacheWrite?: number | undefined;
|
|
3562
|
+
}, {
|
|
3563
|
+
context: number;
|
|
3564
|
+
prompt: number;
|
|
3565
|
+
completion: number;
|
|
3566
|
+
cacheRead?: number | undefined;
|
|
3567
|
+
cacheWrite?: number | undefined;
|
|
3568
|
+
}>>>>;
|
|
3452
3569
|
}, "strip", z.ZodTypeAny, {
|
|
3453
3570
|
name?: string | undefined;
|
|
3454
3571
|
iconURL?: string | undefined;
|
|
3455
3572
|
apiKey?: string | undefined;
|
|
3456
3573
|
headers?: Record<string, string> | undefined;
|
|
3457
3574
|
baseURL?: string | undefined;
|
|
3575
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
3458
3576
|
streamRate?: number | undefined;
|
|
3459
3577
|
titlePrompt?: string | undefined;
|
|
3460
3578
|
titleModel?: string | undefined;
|
|
@@ -3516,12 +3634,20 @@ declare const customEndpointsSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
|
3516
3634
|
} | undefined;
|
|
3517
3635
|
directEndpoint?: boolean | undefined;
|
|
3518
3636
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
3637
|
+
tokenConfig?: Record<string, {
|
|
3638
|
+
context: number;
|
|
3639
|
+
prompt: number;
|
|
3640
|
+
completion: number;
|
|
3641
|
+
cacheRead?: number | undefined;
|
|
3642
|
+
cacheWrite?: number | undefined;
|
|
3643
|
+
}> | undefined;
|
|
3519
3644
|
}, {
|
|
3520
3645
|
name?: string | undefined;
|
|
3521
3646
|
iconURL?: string | undefined;
|
|
3522
3647
|
apiKey?: string | undefined;
|
|
3523
3648
|
headers?: Record<string, string> | undefined;
|
|
3524
3649
|
baseURL?: string | undefined;
|
|
3650
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
3525
3651
|
streamRate?: number | undefined;
|
|
3526
3652
|
titlePrompt?: string | undefined;
|
|
3527
3653
|
titleModel?: string | undefined;
|
|
@@ -3583,6 +3709,13 @@ declare const customEndpointsSchema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
|
3583
3709
|
} | undefined;
|
|
3584
3710
|
directEndpoint?: boolean | undefined;
|
|
3585
3711
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
3712
|
+
tokenConfig?: Record<string, {
|
|
3713
|
+
context: number;
|
|
3714
|
+
prompt: number;
|
|
3715
|
+
completion: number;
|
|
3716
|
+
cacheRead?: number | undefined;
|
|
3717
|
+
cacheWrite?: number | undefined;
|
|
3718
|
+
}> | undefined;
|
|
3586
3719
|
}>, "many">>;
|
|
3587
3720
|
export declare const messageFilterPiiSchema: z.ZodObject<{
|
|
3588
3721
|
starterPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -5382,6 +5515,18 @@ export declare const configSchema: z.ZodObject<{
|
|
|
5382
5515
|
retainAgentFiles: z.ZodOptional<z.ZodBoolean>;
|
|
5383
5516
|
runCode: z.ZodOptional<z.ZodBoolean>;
|
|
5384
5517
|
webSearch: z.ZodOptional<z.ZodBoolean>;
|
|
5518
|
+
contextUsage: z.ZodOptional<z.ZodBoolean>;
|
|
5519
|
+
contextCost: z.ZodOptional<z.ZodBoolean>;
|
|
5520
|
+
currency: z.ZodOptional<z.ZodObject<{
|
|
5521
|
+
code: z.ZodString;
|
|
5522
|
+
rate: z.ZodNumber;
|
|
5523
|
+
}, "strip", z.ZodTypeAny, {
|
|
5524
|
+
code: string;
|
|
5525
|
+
rate: number;
|
|
5526
|
+
}, {
|
|
5527
|
+
code: string;
|
|
5528
|
+
rate: number;
|
|
5529
|
+
}>>;
|
|
5385
5530
|
peoplePicker: z.ZodOptional<z.ZodObject<{
|
|
5386
5531
|
users: z.ZodOptional<z.ZodBoolean>;
|
|
5387
5532
|
groups: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5511,6 +5656,12 @@ export declare const configSchema: z.ZodObject<{
|
|
|
5511
5656
|
autoSubmitFromUrl?: boolean | undefined;
|
|
5512
5657
|
retainAgentFiles?: boolean | undefined;
|
|
5513
5658
|
runCode?: boolean | undefined;
|
|
5659
|
+
contextUsage?: boolean | undefined;
|
|
5660
|
+
contextCost?: boolean | undefined;
|
|
5661
|
+
currency?: {
|
|
5662
|
+
code: string;
|
|
5663
|
+
rate: number;
|
|
5664
|
+
} | undefined;
|
|
5514
5665
|
peoplePicker?: {
|
|
5515
5666
|
users?: boolean | undefined;
|
|
5516
5667
|
groups?: boolean | undefined;
|
|
@@ -5590,6 +5741,12 @@ export declare const configSchema: z.ZodObject<{
|
|
|
5590
5741
|
retentionMode?: RetentionMode | undefined;
|
|
5591
5742
|
retainAgentFiles?: boolean | undefined;
|
|
5592
5743
|
runCode?: boolean | undefined;
|
|
5744
|
+
contextUsage?: boolean | undefined;
|
|
5745
|
+
contextCost?: boolean | undefined;
|
|
5746
|
+
currency?: {
|
|
5747
|
+
code: string;
|
|
5748
|
+
rate: number;
|
|
5749
|
+
} | undefined;
|
|
5593
5750
|
peoplePicker?: {
|
|
5594
5751
|
users?: boolean | undefined;
|
|
5595
5752
|
groups?: boolean | undefined;
|
|
@@ -6519,6 +6676,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6519
6676
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6520
6677
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
6521
6678
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
6679
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
6522
6680
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6523
6681
|
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
6524
6682
|
name: z.ZodString;
|
|
@@ -6595,6 +6753,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6595
6753
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
6596
6754
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
6597
6755
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
6756
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
6598
6757
|
system: z.ZodOptional<z.ZodString>;
|
|
6599
6758
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
6600
6759
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
@@ -6720,6 +6879,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6720
6879
|
endpoint: string | null;
|
|
6721
6880
|
model?: string | null | undefined;
|
|
6722
6881
|
endpointType?: EModelEndpoint | null | undefined;
|
|
6882
|
+
pinned?: boolean | undefined;
|
|
6723
6883
|
tools?: string[] | {
|
|
6724
6884
|
name: string;
|
|
6725
6885
|
pluginKey: string;
|
|
@@ -6750,6 +6910,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6750
6910
|
maxContextTokens?: number | undefined;
|
|
6751
6911
|
max_tokens?: number | undefined;
|
|
6752
6912
|
promptCache?: boolean | undefined;
|
|
6913
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
6753
6914
|
system?: string | undefined;
|
|
6754
6915
|
thinking?: boolean | undefined;
|
|
6755
6916
|
thinkingBudget?: number | undefined;
|
|
@@ -6816,6 +6977,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6816
6977
|
endpoint: string | null;
|
|
6817
6978
|
model?: string | null | undefined;
|
|
6818
6979
|
endpointType?: EModelEndpoint | null | undefined;
|
|
6980
|
+
pinned?: boolean | undefined;
|
|
6819
6981
|
tools?: string[] | {
|
|
6820
6982
|
name: string;
|
|
6821
6983
|
pluginKey: string;
|
|
@@ -6846,6 +7008,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6846
7008
|
maxContextTokens?: string | number | undefined;
|
|
6847
7009
|
max_tokens?: string | number | undefined;
|
|
6848
7010
|
promptCache?: boolean | undefined;
|
|
7011
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
6849
7012
|
system?: string | undefined;
|
|
6850
7013
|
thinking?: boolean | undefined;
|
|
6851
7014
|
thinkingBudget?: string | number | undefined;
|
|
@@ -6918,6 +7081,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6918
7081
|
showIconInMenu: z.ZodOptional<z.ZodBoolean>;
|
|
6919
7082
|
showIconInHeader: z.ZodOptional<z.ZodBoolean>;
|
|
6920
7083
|
showOnLanding: z.ZodOptional<z.ZodBoolean>;
|
|
7084
|
+
conversation_starters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6921
7085
|
iconURL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<typeof EModelEndpoint>]>>;
|
|
6922
7086
|
authType: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").AuthType>>;
|
|
6923
7087
|
hideBadgeRow: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6947,6 +7111,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6947
7111
|
endpoint: string | null;
|
|
6948
7112
|
model?: string | null | undefined;
|
|
6949
7113
|
endpointType?: EModelEndpoint | null | undefined;
|
|
7114
|
+
pinned?: boolean | undefined;
|
|
6950
7115
|
tools?: string[] | {
|
|
6951
7116
|
name: string;
|
|
6952
7117
|
pluginKey: string;
|
|
@@ -6977,6 +7142,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
6977
7142
|
maxContextTokens?: number | undefined;
|
|
6978
7143
|
max_tokens?: number | undefined;
|
|
6979
7144
|
promptCache?: boolean | undefined;
|
|
7145
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
6980
7146
|
system?: string | undefined;
|
|
6981
7147
|
thinking?: boolean | undefined;
|
|
6982
7148
|
thinkingBudget?: number | undefined;
|
|
@@ -7051,6 +7217,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7051
7217
|
showIconInMenu?: boolean | undefined;
|
|
7052
7218
|
showIconInHeader?: boolean | undefined;
|
|
7053
7219
|
showOnLanding?: boolean | undefined;
|
|
7220
|
+
conversation_starters?: string[] | undefined;
|
|
7054
7221
|
authType?: import("./schemas").AuthType | undefined;
|
|
7055
7222
|
hideBadgeRow?: boolean | undefined;
|
|
7056
7223
|
webSearch?: boolean | undefined;
|
|
@@ -7070,6 +7237,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7070
7237
|
endpoint: string | null;
|
|
7071
7238
|
model?: string | null | undefined;
|
|
7072
7239
|
endpointType?: EModelEndpoint | null | undefined;
|
|
7240
|
+
pinned?: boolean | undefined;
|
|
7073
7241
|
tools?: string[] | {
|
|
7074
7242
|
name: string;
|
|
7075
7243
|
pluginKey: string;
|
|
@@ -7100,6 +7268,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7100
7268
|
maxContextTokens?: string | number | undefined;
|
|
7101
7269
|
max_tokens?: string | number | undefined;
|
|
7102
7270
|
promptCache?: boolean | undefined;
|
|
7271
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
7103
7272
|
system?: string | undefined;
|
|
7104
7273
|
thinking?: boolean | undefined;
|
|
7105
7274
|
thinkingBudget?: string | number | undefined;
|
|
@@ -7174,6 +7343,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7174
7343
|
showIconInMenu?: boolean | undefined;
|
|
7175
7344
|
showIconInHeader?: boolean | undefined;
|
|
7176
7345
|
showOnLanding?: boolean | undefined;
|
|
7346
|
+
conversation_starters?: string[] | undefined;
|
|
7177
7347
|
authType?: import("./schemas").AuthType | undefined;
|
|
7178
7348
|
hideBadgeRow?: boolean | undefined;
|
|
7179
7349
|
webSearch?: boolean | undefined;
|
|
@@ -7198,6 +7368,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7198
7368
|
endpoint: string | null;
|
|
7199
7369
|
model?: string | null | undefined;
|
|
7200
7370
|
endpointType?: EModelEndpoint | null | undefined;
|
|
7371
|
+
pinned?: boolean | undefined;
|
|
7201
7372
|
tools?: string[] | {
|
|
7202
7373
|
name: string;
|
|
7203
7374
|
pluginKey: string;
|
|
@@ -7228,6 +7399,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7228
7399
|
maxContextTokens?: number | undefined;
|
|
7229
7400
|
max_tokens?: number | undefined;
|
|
7230
7401
|
promptCache?: boolean | undefined;
|
|
7402
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
7231
7403
|
system?: string | undefined;
|
|
7232
7404
|
thinking?: boolean | undefined;
|
|
7233
7405
|
thinkingBudget?: number | undefined;
|
|
@@ -7302,6 +7474,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7302
7474
|
showIconInMenu?: boolean | undefined;
|
|
7303
7475
|
showIconInHeader?: boolean | undefined;
|
|
7304
7476
|
showOnLanding?: boolean | undefined;
|
|
7477
|
+
conversation_starters?: string[] | undefined;
|
|
7305
7478
|
authType?: import("./schemas").AuthType | undefined;
|
|
7306
7479
|
hideBadgeRow?: boolean | undefined;
|
|
7307
7480
|
webSearch?: boolean | undefined;
|
|
@@ -7326,6 +7499,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7326
7499
|
endpoint: string | null;
|
|
7327
7500
|
model?: string | null | undefined;
|
|
7328
7501
|
endpointType?: EModelEndpoint | null | undefined;
|
|
7502
|
+
pinned?: boolean | undefined;
|
|
7329
7503
|
tools?: string[] | {
|
|
7330
7504
|
name: string;
|
|
7331
7505
|
pluginKey: string;
|
|
@@ -7356,6 +7530,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7356
7530
|
maxContextTokens?: string | number | undefined;
|
|
7357
7531
|
max_tokens?: string | number | undefined;
|
|
7358
7532
|
promptCache?: boolean | undefined;
|
|
7533
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
7359
7534
|
system?: string | undefined;
|
|
7360
7535
|
thinking?: boolean | undefined;
|
|
7361
7536
|
thinkingBudget?: string | number | undefined;
|
|
@@ -7430,6 +7605,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7430
7605
|
showIconInMenu?: boolean | undefined;
|
|
7431
7606
|
showIconInHeader?: boolean | undefined;
|
|
7432
7607
|
showOnLanding?: boolean | undefined;
|
|
7608
|
+
conversation_starters?: string[] | undefined;
|
|
7433
7609
|
authType?: import("./schemas").AuthType | undefined;
|
|
7434
7610
|
hideBadgeRow?: boolean | undefined;
|
|
7435
7611
|
webSearch?: boolean | undefined;
|
|
@@ -7500,6 +7676,15 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7500
7676
|
all: z.ZodOptional<z.ZodObject<Omit<{
|
|
7501
7677
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
7502
7678
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
7679
|
+
/**
|
|
7680
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
7681
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
7682
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
7683
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
7684
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
7685
|
+
* headers (provider-native request shaping is preserved).
|
|
7686
|
+
*/
|
|
7687
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7503
7688
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
7504
7689
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
7505
7690
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -7516,6 +7701,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7516
7701
|
/** Maximum characters allowed in a single tool result before truncation. */
|
|
7517
7702
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
7518
7703
|
}, "baseURL">, "strip", z.ZodTypeAny, {
|
|
7704
|
+
headers?: Record<string, string> | undefined;
|
|
7519
7705
|
streamRate?: number | undefined;
|
|
7520
7706
|
titlePrompt?: string | undefined;
|
|
7521
7707
|
titleModel?: string | undefined;
|
|
@@ -7526,6 +7712,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7526
7712
|
titleTiming?: "immediate" | "final" | undefined;
|
|
7527
7713
|
maxToolResultChars?: number | undefined;
|
|
7528
7714
|
}, {
|
|
7715
|
+
headers?: Record<string, string> | undefined;
|
|
7529
7716
|
streamRate?: number | undefined;
|
|
7530
7717
|
titlePrompt?: string | undefined;
|
|
7531
7718
|
titleModel?: string | undefined;
|
|
@@ -7539,6 +7726,15 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7539
7726
|
openAI: z.ZodOptional<z.ZodObject<{
|
|
7540
7727
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
7541
7728
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
7729
|
+
/**
|
|
7730
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
7731
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
7732
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
7733
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
7734
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
7735
|
+
* headers (provider-native request shaping is preserved).
|
|
7736
|
+
*/
|
|
7737
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7542
7738
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
7543
7739
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
7544
7740
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -7555,6 +7751,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7555
7751
|
/** Maximum characters allowed in a single tool result before truncation. */
|
|
7556
7752
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
7557
7753
|
}, "strip", z.ZodTypeAny, {
|
|
7754
|
+
headers?: Record<string, string> | undefined;
|
|
7558
7755
|
baseURL?: string | undefined;
|
|
7559
7756
|
streamRate?: number | undefined;
|
|
7560
7757
|
titlePrompt?: string | undefined;
|
|
@@ -7566,6 +7763,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7566
7763
|
titleTiming?: "immediate" | "final" | undefined;
|
|
7567
7764
|
maxToolResultChars?: number | undefined;
|
|
7568
7765
|
}, {
|
|
7766
|
+
headers?: Record<string, string> | undefined;
|
|
7569
7767
|
baseURL?: string | undefined;
|
|
7570
7768
|
streamRate?: number | undefined;
|
|
7571
7769
|
titlePrompt?: string | undefined;
|
|
@@ -7580,6 +7778,15 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7580
7778
|
google: z.ZodOptional<z.ZodObject<{
|
|
7581
7779
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
7582
7780
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
7781
|
+
/**
|
|
7782
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
7783
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
7784
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
7785
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
7786
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
7787
|
+
* headers (provider-native request shaping is preserved).
|
|
7788
|
+
*/
|
|
7789
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7583
7790
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
7584
7791
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
7585
7792
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -7596,6 +7803,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7596
7803
|
/** Maximum characters allowed in a single tool result before truncation. */
|
|
7597
7804
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
7598
7805
|
}, "strip", z.ZodTypeAny, {
|
|
7806
|
+
headers?: Record<string, string> | undefined;
|
|
7599
7807
|
baseURL?: string | undefined;
|
|
7600
7808
|
streamRate?: number | undefined;
|
|
7601
7809
|
titlePrompt?: string | undefined;
|
|
@@ -7607,6 +7815,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7607
7815
|
titleTiming?: "immediate" | "final" | undefined;
|
|
7608
7816
|
maxToolResultChars?: number | undefined;
|
|
7609
7817
|
}, {
|
|
7818
|
+
headers?: Record<string, string> | undefined;
|
|
7610
7819
|
baseURL?: string | undefined;
|
|
7611
7820
|
streamRate?: number | undefined;
|
|
7612
7821
|
titlePrompt?: string | undefined;
|
|
@@ -7621,6 +7830,15 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7621
7830
|
anthropic: z.ZodOptional<z.ZodObject<{
|
|
7622
7831
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
7623
7832
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
7833
|
+
/**
|
|
7834
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
7835
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
7836
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
7837
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
7838
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
7839
|
+
* headers (provider-native request shaping is preserved).
|
|
7840
|
+
*/
|
|
7841
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7624
7842
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
7625
7843
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
7626
7844
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -7680,6 +7898,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7680
7898
|
/** Optional: List of available models */
|
|
7681
7899
|
models: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7682
7900
|
}, "strip", z.ZodTypeAny, {
|
|
7901
|
+
headers?: Record<string, string> | undefined;
|
|
7683
7902
|
baseURL?: string | undefined;
|
|
7684
7903
|
streamRate?: number | undefined;
|
|
7685
7904
|
titlePrompt?: string | undefined;
|
|
@@ -7702,6 +7921,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7702
7921
|
}> | undefined;
|
|
7703
7922
|
} | undefined;
|
|
7704
7923
|
}, {
|
|
7924
|
+
headers?: Record<string, string> | undefined;
|
|
7705
7925
|
baseURL?: string | undefined;
|
|
7706
7926
|
streamRate?: number | undefined;
|
|
7707
7927
|
titlePrompt?: string | undefined;
|
|
@@ -7865,14 +8085,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7865
8085
|
titleMethod: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"completion">, z.ZodLiteral<"functions">, z.ZodLiteral<"structured">]>>;
|
|
7866
8086
|
titleEndpoint: z.ZodOptional<z.ZodString>;
|
|
7867
8087
|
titlePromptTemplate: z.ZodOptional<z.ZodString>;
|
|
7868
|
-
/**
|
|
7869
|
-
* When conversation titles are generated. `immediate` (default) generates the
|
|
7870
|
-
* title as soon as the request is made, in parallel with the response, from the
|
|
7871
|
-
* user's first message. `final` defers generation until the full response
|
|
7872
|
-
* completes (legacy behavior).
|
|
7873
|
-
*/
|
|
7874
8088
|
titleTiming: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"immediate">, z.ZodLiteral<"final">]>>;
|
|
7875
|
-
/** Maximum characters allowed in a single tool result before truncation. */
|
|
7876
8089
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
7877
8090
|
} & {
|
|
7878
8091
|
disableBuilder: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -7984,14 +8197,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
7984
8197
|
titleMethod: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"completion">, z.ZodLiteral<"functions">, z.ZodLiteral<"structured">]>>;
|
|
7985
8198
|
titleEndpoint: z.ZodOptional<z.ZodString>;
|
|
7986
8199
|
titlePromptTemplate: z.ZodOptional<z.ZodString>;
|
|
7987
|
-
/**
|
|
7988
|
-
* When conversation titles are generated. `immediate` (default) generates the
|
|
7989
|
-
* title as soon as the request is made, in parallel with the response, from the
|
|
7990
|
-
* user's first message. `final` defers generation until the full response
|
|
7991
|
-
* completes (legacy behavior).
|
|
7992
|
-
*/
|
|
7993
8200
|
titleTiming: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"immediate">, z.ZodLiteral<"final">]>>;
|
|
7994
|
-
/** Maximum characters allowed in a single tool result before truncation. */
|
|
7995
8201
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
7996
8202
|
} & {
|
|
7997
8203
|
disableBuilder: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8097,6 +8303,15 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8097
8303
|
agents: z.ZodOptional<z.ZodDefault<z.ZodObject<Omit<{
|
|
8098
8304
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
8099
8305
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
8306
|
+
/**
|
|
8307
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
8308
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
8309
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
8310
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
8311
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
8312
|
+
* headers (provider-native request shaping is preserved).
|
|
8313
|
+
*/
|
|
8314
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8100
8315
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
8101
8316
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
8102
8317
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8227,6 +8442,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8227
8442
|
skills?: {
|
|
8228
8443
|
maxCatalogSkills?: number | undefined;
|
|
8229
8444
|
} | undefined;
|
|
8445
|
+
headers?: Record<string, string> | undefined;
|
|
8230
8446
|
streamRate?: number | undefined;
|
|
8231
8447
|
titlePrompt?: string | undefined;
|
|
8232
8448
|
titleModel?: string | undefined;
|
|
@@ -8257,6 +8473,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8257
8473
|
skills?: {
|
|
8258
8474
|
maxCatalogSkills?: number | undefined;
|
|
8259
8475
|
} | undefined;
|
|
8476
|
+
headers?: Record<string, string> | undefined;
|
|
8260
8477
|
streamRate?: number | undefined;
|
|
8261
8478
|
titlePrompt?: string | undefined;
|
|
8262
8479
|
titleModel?: string | undefined;
|
|
@@ -8332,6 +8549,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8332
8549
|
}>>;
|
|
8333
8550
|
iconURL: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
8334
8551
|
modelDisplayLabel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
8552
|
+
provider: z.ZodOptional<z.ZodOptional<z.ZodLiteral<EModelEndpoint.anthropic>>>;
|
|
8335
8553
|
headers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
8336
8554
|
addParams: z.ZodOptional<z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>>;
|
|
8337
8555
|
dropParams: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -8526,12 +8744,32 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8526
8744
|
}>>>;
|
|
8527
8745
|
directEndpoint: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
8528
8746
|
titleMessageRole: z.ZodOptional<z.ZodOptional<z.ZodEnum<["system", "user", "assistant"]>>>;
|
|
8747
|
+
tokenConfig: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8748
|
+
prompt: z.ZodNumber;
|
|
8749
|
+
completion: z.ZodNumber;
|
|
8750
|
+
context: z.ZodNumber;
|
|
8751
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
8752
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
8753
|
+
}, "strip", z.ZodTypeAny, {
|
|
8754
|
+
context: number;
|
|
8755
|
+
prompt: number;
|
|
8756
|
+
completion: number;
|
|
8757
|
+
cacheRead?: number | undefined;
|
|
8758
|
+
cacheWrite?: number | undefined;
|
|
8759
|
+
}, {
|
|
8760
|
+
context: number;
|
|
8761
|
+
prompt: number;
|
|
8762
|
+
completion: number;
|
|
8763
|
+
cacheRead?: number | undefined;
|
|
8764
|
+
cacheWrite?: number | undefined;
|
|
8765
|
+
}>>>>;
|
|
8529
8766
|
}, "strip", z.ZodTypeAny, {
|
|
8530
8767
|
name?: string | undefined;
|
|
8531
8768
|
iconURL?: string | undefined;
|
|
8532
8769
|
apiKey?: string | undefined;
|
|
8533
8770
|
headers?: Record<string, string> | undefined;
|
|
8534
8771
|
baseURL?: string | undefined;
|
|
8772
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
8535
8773
|
streamRate?: number | undefined;
|
|
8536
8774
|
titlePrompt?: string | undefined;
|
|
8537
8775
|
titleModel?: string | undefined;
|
|
@@ -8593,12 +8831,20 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8593
8831
|
} | undefined;
|
|
8594
8832
|
directEndpoint?: boolean | undefined;
|
|
8595
8833
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
8834
|
+
tokenConfig?: Record<string, {
|
|
8835
|
+
context: number;
|
|
8836
|
+
prompt: number;
|
|
8837
|
+
completion: number;
|
|
8838
|
+
cacheRead?: number | undefined;
|
|
8839
|
+
cacheWrite?: number | undefined;
|
|
8840
|
+
}> | undefined;
|
|
8596
8841
|
}, {
|
|
8597
8842
|
name?: string | undefined;
|
|
8598
8843
|
iconURL?: string | undefined;
|
|
8599
8844
|
apiKey?: string | undefined;
|
|
8600
8845
|
headers?: Record<string, string> | undefined;
|
|
8601
8846
|
baseURL?: string | undefined;
|
|
8847
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
8602
8848
|
streamRate?: number | undefined;
|
|
8603
8849
|
titlePrompt?: string | undefined;
|
|
8604
8850
|
titleModel?: string | undefined;
|
|
@@ -8660,10 +8906,26 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8660
8906
|
} | undefined;
|
|
8661
8907
|
directEndpoint?: boolean | undefined;
|
|
8662
8908
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
8909
|
+
tokenConfig?: Record<string, {
|
|
8910
|
+
context: number;
|
|
8911
|
+
prompt: number;
|
|
8912
|
+
completion: number;
|
|
8913
|
+
cacheRead?: number | undefined;
|
|
8914
|
+
cacheWrite?: number | undefined;
|
|
8915
|
+
}> | undefined;
|
|
8663
8916
|
}>, "many">>>;
|
|
8664
8917
|
bedrock: z.ZodOptional<z.ZodObject<{
|
|
8665
8918
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
8666
8919
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
8920
|
+
/**
|
|
8921
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
8922
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
8923
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
8924
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
8925
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
8926
|
+
* headers (provider-native request shaping is preserved).
|
|
8927
|
+
*/
|
|
8928
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8667
8929
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
8668
8930
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
8669
8931
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8700,6 +8962,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8700
8962
|
}>>;
|
|
8701
8963
|
inferenceProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8702
8964
|
}, "strip", z.ZodTypeAny, {
|
|
8965
|
+
headers?: Record<string, string> | undefined;
|
|
8703
8966
|
baseURL?: string | undefined;
|
|
8704
8967
|
streamRate?: number | undefined;
|
|
8705
8968
|
titlePrompt?: string | undefined;
|
|
@@ -8720,6 +8983,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8720
8983
|
} | undefined;
|
|
8721
8984
|
inferenceProfiles?: Record<string, string> | undefined;
|
|
8722
8985
|
}, {
|
|
8986
|
+
headers?: Record<string, string> | undefined;
|
|
8723
8987
|
baseURL?: string | undefined;
|
|
8724
8988
|
streamRate?: number | undefined;
|
|
8725
8989
|
titlePrompt?: string | undefined;
|
|
@@ -8772,6 +9036,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8772
9036
|
titleTiming?: "immediate" | "final" | undefined;
|
|
8773
9037
|
}) | undefined;
|
|
8774
9038
|
openAI?: {
|
|
9039
|
+
headers?: Record<string, string> | undefined;
|
|
8775
9040
|
baseURL?: string | undefined;
|
|
8776
9041
|
streamRate?: number | undefined;
|
|
8777
9042
|
titlePrompt?: string | undefined;
|
|
@@ -8784,6 +9049,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8784
9049
|
maxToolResultChars?: number | undefined;
|
|
8785
9050
|
} | undefined;
|
|
8786
9051
|
google?: {
|
|
9052
|
+
headers?: Record<string, string> | undefined;
|
|
8787
9053
|
baseURL?: string | undefined;
|
|
8788
9054
|
streamRate?: number | undefined;
|
|
8789
9055
|
titlePrompt?: string | undefined;
|
|
@@ -8796,6 +9062,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8796
9062
|
maxToolResultChars?: number | undefined;
|
|
8797
9063
|
} | undefined;
|
|
8798
9064
|
anthropic?: {
|
|
9065
|
+
headers?: Record<string, string> | undefined;
|
|
8799
9066
|
baseURL?: string | undefined;
|
|
8800
9067
|
streamRate?: number | undefined;
|
|
8801
9068
|
titlePrompt?: string | undefined;
|
|
@@ -8889,6 +9156,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8889
9156
|
skills?: {
|
|
8890
9157
|
maxCatalogSkills?: number | undefined;
|
|
8891
9158
|
} | undefined;
|
|
9159
|
+
headers?: Record<string, string> | undefined;
|
|
8892
9160
|
streamRate?: number | undefined;
|
|
8893
9161
|
titlePrompt?: string | undefined;
|
|
8894
9162
|
titleModel?: string | undefined;
|
|
@@ -8922,6 +9190,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8922
9190
|
apiKey?: string | undefined;
|
|
8923
9191
|
headers?: Record<string, string> | undefined;
|
|
8924
9192
|
baseURL?: string | undefined;
|
|
9193
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
8925
9194
|
streamRate?: number | undefined;
|
|
8926
9195
|
titlePrompt?: string | undefined;
|
|
8927
9196
|
titleModel?: string | undefined;
|
|
@@ -8983,8 +9252,16 @@ export declare const configSchema: z.ZodObject<{
|
|
|
8983
9252
|
} | undefined;
|
|
8984
9253
|
directEndpoint?: boolean | undefined;
|
|
8985
9254
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
9255
|
+
tokenConfig?: Record<string, {
|
|
9256
|
+
context: number;
|
|
9257
|
+
prompt: number;
|
|
9258
|
+
completion: number;
|
|
9259
|
+
cacheRead?: number | undefined;
|
|
9260
|
+
cacheWrite?: number | undefined;
|
|
9261
|
+
}> | undefined;
|
|
8986
9262
|
}[] | undefined;
|
|
8987
9263
|
bedrock?: {
|
|
9264
|
+
headers?: Record<string, string> | undefined;
|
|
8988
9265
|
baseURL?: string | undefined;
|
|
8989
9266
|
streamRate?: number | undefined;
|
|
8990
9267
|
titlePrompt?: string | undefined;
|
|
@@ -9007,6 +9284,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9007
9284
|
} | undefined;
|
|
9008
9285
|
allowedAddresses?: string[] | undefined;
|
|
9009
9286
|
all?: {
|
|
9287
|
+
headers?: Record<string, string> | undefined;
|
|
9010
9288
|
streamRate?: number | undefined;
|
|
9011
9289
|
titlePrompt?: string | undefined;
|
|
9012
9290
|
titleModel?: string | undefined;
|
|
@@ -9049,6 +9327,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9049
9327
|
titleTiming?: "immediate" | "final" | undefined;
|
|
9050
9328
|
}) | undefined;
|
|
9051
9329
|
openAI?: {
|
|
9330
|
+
headers?: Record<string, string> | undefined;
|
|
9052
9331
|
baseURL?: string | undefined;
|
|
9053
9332
|
streamRate?: number | undefined;
|
|
9054
9333
|
titlePrompt?: string | undefined;
|
|
@@ -9061,6 +9340,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9061
9340
|
maxToolResultChars?: number | undefined;
|
|
9062
9341
|
} | undefined;
|
|
9063
9342
|
google?: {
|
|
9343
|
+
headers?: Record<string, string> | undefined;
|
|
9064
9344
|
baseURL?: string | undefined;
|
|
9065
9345
|
streamRate?: number | undefined;
|
|
9066
9346
|
titlePrompt?: string | undefined;
|
|
@@ -9073,6 +9353,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9073
9353
|
maxToolResultChars?: number | undefined;
|
|
9074
9354
|
} | undefined;
|
|
9075
9355
|
anthropic?: {
|
|
9356
|
+
headers?: Record<string, string> | undefined;
|
|
9076
9357
|
baseURL?: string | undefined;
|
|
9077
9358
|
streamRate?: number | undefined;
|
|
9078
9359
|
titlePrompt?: string | undefined;
|
|
@@ -9161,6 +9442,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9161
9442
|
skills?: {
|
|
9162
9443
|
maxCatalogSkills?: number | undefined;
|
|
9163
9444
|
} | undefined;
|
|
9445
|
+
headers?: Record<string, string> | undefined;
|
|
9164
9446
|
streamRate?: number | undefined;
|
|
9165
9447
|
titlePrompt?: string | undefined;
|
|
9166
9448
|
titleModel?: string | undefined;
|
|
@@ -9199,6 +9481,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9199
9481
|
apiKey?: string | undefined;
|
|
9200
9482
|
headers?: Record<string, string> | undefined;
|
|
9201
9483
|
baseURL?: string | undefined;
|
|
9484
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
9202
9485
|
streamRate?: number | undefined;
|
|
9203
9486
|
titlePrompt?: string | undefined;
|
|
9204
9487
|
titleModel?: string | undefined;
|
|
@@ -9260,8 +9543,16 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9260
9543
|
} | undefined;
|
|
9261
9544
|
directEndpoint?: boolean | undefined;
|
|
9262
9545
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
9546
|
+
tokenConfig?: Record<string, {
|
|
9547
|
+
context: number;
|
|
9548
|
+
prompt: number;
|
|
9549
|
+
completion: number;
|
|
9550
|
+
cacheRead?: number | undefined;
|
|
9551
|
+
cacheWrite?: number | undefined;
|
|
9552
|
+
}> | undefined;
|
|
9263
9553
|
}[] | undefined;
|
|
9264
9554
|
bedrock?: {
|
|
9555
|
+
headers?: Record<string, string> | undefined;
|
|
9265
9556
|
baseURL?: string | undefined;
|
|
9266
9557
|
streamRate?: number | undefined;
|
|
9267
9558
|
titlePrompt?: string | undefined;
|
|
@@ -9284,6 +9575,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9284
9575
|
} | undefined;
|
|
9285
9576
|
allowedAddresses?: string[] | undefined;
|
|
9286
9577
|
all?: {
|
|
9578
|
+
headers?: Record<string, string> | undefined;
|
|
9287
9579
|
streamRate?: number | undefined;
|
|
9288
9580
|
titlePrompt?: string | undefined;
|
|
9289
9581
|
titleModel?: string | undefined;
|
|
@@ -9326,6 +9618,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9326
9618
|
titleTiming?: "immediate" | "final" | undefined;
|
|
9327
9619
|
}) | undefined;
|
|
9328
9620
|
openAI?: {
|
|
9621
|
+
headers?: Record<string, string> | undefined;
|
|
9329
9622
|
baseURL?: string | undefined;
|
|
9330
9623
|
streamRate?: number | undefined;
|
|
9331
9624
|
titlePrompt?: string | undefined;
|
|
@@ -9338,6 +9631,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9338
9631
|
maxToolResultChars?: number | undefined;
|
|
9339
9632
|
} | undefined;
|
|
9340
9633
|
google?: {
|
|
9634
|
+
headers?: Record<string, string> | undefined;
|
|
9341
9635
|
baseURL?: string | undefined;
|
|
9342
9636
|
streamRate?: number | undefined;
|
|
9343
9637
|
titlePrompt?: string | undefined;
|
|
@@ -9350,6 +9644,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9350
9644
|
maxToolResultChars?: number | undefined;
|
|
9351
9645
|
} | undefined;
|
|
9352
9646
|
anthropic?: {
|
|
9647
|
+
headers?: Record<string, string> | undefined;
|
|
9353
9648
|
baseURL?: string | undefined;
|
|
9354
9649
|
streamRate?: number | undefined;
|
|
9355
9650
|
titlePrompt?: string | undefined;
|
|
@@ -9443,6 +9738,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9443
9738
|
skills?: {
|
|
9444
9739
|
maxCatalogSkills?: number | undefined;
|
|
9445
9740
|
} | undefined;
|
|
9741
|
+
headers?: Record<string, string> | undefined;
|
|
9446
9742
|
streamRate?: number | undefined;
|
|
9447
9743
|
titlePrompt?: string | undefined;
|
|
9448
9744
|
titleModel?: string | undefined;
|
|
@@ -9476,6 +9772,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9476
9772
|
apiKey?: string | undefined;
|
|
9477
9773
|
headers?: Record<string, string> | undefined;
|
|
9478
9774
|
baseURL?: string | undefined;
|
|
9775
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
9479
9776
|
streamRate?: number | undefined;
|
|
9480
9777
|
titlePrompt?: string | undefined;
|
|
9481
9778
|
titleModel?: string | undefined;
|
|
@@ -9537,8 +9834,16 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9537
9834
|
} | undefined;
|
|
9538
9835
|
directEndpoint?: boolean | undefined;
|
|
9539
9836
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
9837
|
+
tokenConfig?: Record<string, {
|
|
9838
|
+
context: number;
|
|
9839
|
+
prompt: number;
|
|
9840
|
+
completion: number;
|
|
9841
|
+
cacheRead?: number | undefined;
|
|
9842
|
+
cacheWrite?: number | undefined;
|
|
9843
|
+
}> | undefined;
|
|
9540
9844
|
}[] | undefined;
|
|
9541
9845
|
bedrock?: {
|
|
9846
|
+
headers?: Record<string, string> | undefined;
|
|
9542
9847
|
baseURL?: string | undefined;
|
|
9543
9848
|
streamRate?: number | undefined;
|
|
9544
9849
|
titlePrompt?: string | undefined;
|
|
@@ -9561,6 +9866,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9561
9866
|
} | undefined;
|
|
9562
9867
|
allowedAddresses?: string[] | undefined;
|
|
9563
9868
|
all?: {
|
|
9869
|
+
headers?: Record<string, string> | undefined;
|
|
9564
9870
|
streamRate?: number | undefined;
|
|
9565
9871
|
titlePrompt?: string | undefined;
|
|
9566
9872
|
titleModel?: string | undefined;
|
|
@@ -9603,6 +9909,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9603
9909
|
titleTiming?: "immediate" | "final" | undefined;
|
|
9604
9910
|
}) | undefined;
|
|
9605
9911
|
openAI?: {
|
|
9912
|
+
headers?: Record<string, string> | undefined;
|
|
9606
9913
|
baseURL?: string | undefined;
|
|
9607
9914
|
streamRate?: number | undefined;
|
|
9608
9915
|
titlePrompt?: string | undefined;
|
|
@@ -9615,6 +9922,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9615
9922
|
maxToolResultChars?: number | undefined;
|
|
9616
9923
|
} | undefined;
|
|
9617
9924
|
google?: {
|
|
9925
|
+
headers?: Record<string, string> | undefined;
|
|
9618
9926
|
baseURL?: string | undefined;
|
|
9619
9927
|
streamRate?: number | undefined;
|
|
9620
9928
|
titlePrompt?: string | undefined;
|
|
@@ -9627,6 +9935,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9627
9935
|
maxToolResultChars?: number | undefined;
|
|
9628
9936
|
} | undefined;
|
|
9629
9937
|
anthropic?: {
|
|
9938
|
+
headers?: Record<string, string> | undefined;
|
|
9630
9939
|
baseURL?: string | undefined;
|
|
9631
9940
|
streamRate?: number | undefined;
|
|
9632
9941
|
titlePrompt?: string | undefined;
|
|
@@ -9715,6 +10024,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9715
10024
|
skills?: {
|
|
9716
10025
|
maxCatalogSkills?: number | undefined;
|
|
9717
10026
|
} | undefined;
|
|
10027
|
+
headers?: Record<string, string> | undefined;
|
|
9718
10028
|
streamRate?: number | undefined;
|
|
9719
10029
|
titlePrompt?: string | undefined;
|
|
9720
10030
|
titleModel?: string | undefined;
|
|
@@ -9753,6 +10063,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9753
10063
|
apiKey?: string | undefined;
|
|
9754
10064
|
headers?: Record<string, string> | undefined;
|
|
9755
10065
|
baseURL?: string | undefined;
|
|
10066
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
9756
10067
|
streamRate?: number | undefined;
|
|
9757
10068
|
titlePrompt?: string | undefined;
|
|
9758
10069
|
titleModel?: string | undefined;
|
|
@@ -9814,8 +10125,16 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9814
10125
|
} | undefined;
|
|
9815
10126
|
directEndpoint?: boolean | undefined;
|
|
9816
10127
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
10128
|
+
tokenConfig?: Record<string, {
|
|
10129
|
+
context: number;
|
|
10130
|
+
prompt: number;
|
|
10131
|
+
completion: number;
|
|
10132
|
+
cacheRead?: number | undefined;
|
|
10133
|
+
cacheWrite?: number | undefined;
|
|
10134
|
+
}> | undefined;
|
|
9817
10135
|
}[] | undefined;
|
|
9818
10136
|
bedrock?: {
|
|
10137
|
+
headers?: Record<string, string> | undefined;
|
|
9819
10138
|
baseURL?: string | undefined;
|
|
9820
10139
|
streamRate?: number | undefined;
|
|
9821
10140
|
titlePrompt?: string | undefined;
|
|
@@ -9838,6 +10157,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9838
10157
|
} | undefined;
|
|
9839
10158
|
allowedAddresses?: string[] | undefined;
|
|
9840
10159
|
all?: {
|
|
10160
|
+
headers?: Record<string, string> | undefined;
|
|
9841
10161
|
streamRate?: number | undefined;
|
|
9842
10162
|
titlePrompt?: string | undefined;
|
|
9843
10163
|
titleModel?: string | undefined;
|
|
@@ -9911,6 +10231,12 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9911
10231
|
autoSubmitFromUrl?: boolean | undefined;
|
|
9912
10232
|
retainAgentFiles?: boolean | undefined;
|
|
9913
10233
|
runCode?: boolean | undefined;
|
|
10234
|
+
contextUsage?: boolean | undefined;
|
|
10235
|
+
contextCost?: boolean | undefined;
|
|
10236
|
+
currency?: {
|
|
10237
|
+
code: string;
|
|
10238
|
+
rate: number;
|
|
10239
|
+
} | undefined;
|
|
9914
10240
|
peoplePicker?: {
|
|
9915
10241
|
users?: boolean | undefined;
|
|
9916
10242
|
groups?: boolean | undefined;
|
|
@@ -9938,6 +10264,33 @@ export declare const configSchema: z.ZodObject<{
|
|
|
9938
10264
|
allowedDomains?: string[] | undefined;
|
|
9939
10265
|
socialLogins?: string[] | undefined;
|
|
9940
10266
|
};
|
|
10267
|
+
summarization?: {
|
|
10268
|
+
model?: string | undefined;
|
|
10269
|
+
prompt?: string | undefined;
|
|
10270
|
+
enabled?: boolean | undefined;
|
|
10271
|
+
provider?: string | undefined;
|
|
10272
|
+
parameters?: Record<string, string | number | boolean | null> | undefined;
|
|
10273
|
+
trigger?: {
|
|
10274
|
+
type: "token_ratio";
|
|
10275
|
+
value: number;
|
|
10276
|
+
} | {
|
|
10277
|
+
type: "remaining_tokens";
|
|
10278
|
+
value: number;
|
|
10279
|
+
} | {
|
|
10280
|
+
type: "messages_to_refine";
|
|
10281
|
+
value: number;
|
|
10282
|
+
} | undefined;
|
|
10283
|
+
updatePrompt?: string | undefined;
|
|
10284
|
+
reserveRatio?: number | undefined;
|
|
10285
|
+
maxSummaryTokens?: number | undefined;
|
|
10286
|
+
contextPruning?: {
|
|
10287
|
+
enabled?: boolean | undefined;
|
|
10288
|
+
keepLastAssistants?: number | undefined;
|
|
10289
|
+
softTrimRatio?: number | undefined;
|
|
10290
|
+
hardClearRatio?: number | undefined;
|
|
10291
|
+
minPrunableToolChars?: number | undefined;
|
|
10292
|
+
} | undefined;
|
|
10293
|
+
} | undefined;
|
|
9941
10294
|
webSearch?: {
|
|
9942
10295
|
serperApiKey: string;
|
|
9943
10296
|
searxngInstanceUrl: string;
|
|
@@ -10239,6 +10592,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10239
10592
|
titleTiming?: "immediate" | "final" | undefined;
|
|
10240
10593
|
}) | undefined;
|
|
10241
10594
|
openAI?: {
|
|
10595
|
+
headers?: Record<string, string> | undefined;
|
|
10242
10596
|
baseURL?: string | undefined;
|
|
10243
10597
|
streamRate?: number | undefined;
|
|
10244
10598
|
titlePrompt?: string | undefined;
|
|
@@ -10251,6 +10605,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10251
10605
|
maxToolResultChars?: number | undefined;
|
|
10252
10606
|
} | undefined;
|
|
10253
10607
|
google?: {
|
|
10608
|
+
headers?: Record<string, string> | undefined;
|
|
10254
10609
|
baseURL?: string | undefined;
|
|
10255
10610
|
streamRate?: number | undefined;
|
|
10256
10611
|
titlePrompt?: string | undefined;
|
|
@@ -10263,6 +10618,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10263
10618
|
maxToolResultChars?: number | undefined;
|
|
10264
10619
|
} | undefined;
|
|
10265
10620
|
anthropic?: {
|
|
10621
|
+
headers?: Record<string, string> | undefined;
|
|
10266
10622
|
baseURL?: string | undefined;
|
|
10267
10623
|
streamRate?: number | undefined;
|
|
10268
10624
|
titlePrompt?: string | undefined;
|
|
@@ -10356,6 +10712,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10356
10712
|
skills?: {
|
|
10357
10713
|
maxCatalogSkills?: number | undefined;
|
|
10358
10714
|
} | undefined;
|
|
10715
|
+
headers?: Record<string, string> | undefined;
|
|
10359
10716
|
streamRate?: number | undefined;
|
|
10360
10717
|
titlePrompt?: string | undefined;
|
|
10361
10718
|
titleModel?: string | undefined;
|
|
@@ -10389,6 +10746,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10389
10746
|
apiKey?: string | undefined;
|
|
10390
10747
|
headers?: Record<string, string> | undefined;
|
|
10391
10748
|
baseURL?: string | undefined;
|
|
10749
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
10392
10750
|
streamRate?: number | undefined;
|
|
10393
10751
|
titlePrompt?: string | undefined;
|
|
10394
10752
|
titleModel?: string | undefined;
|
|
@@ -10450,8 +10808,16 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10450
10808
|
} | undefined;
|
|
10451
10809
|
directEndpoint?: boolean | undefined;
|
|
10452
10810
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
10811
|
+
tokenConfig?: Record<string, {
|
|
10812
|
+
context: number;
|
|
10813
|
+
prompt: number;
|
|
10814
|
+
completion: number;
|
|
10815
|
+
cacheRead?: number | undefined;
|
|
10816
|
+
cacheWrite?: number | undefined;
|
|
10817
|
+
}> | undefined;
|
|
10453
10818
|
}[] | undefined;
|
|
10454
10819
|
bedrock?: {
|
|
10820
|
+
headers?: Record<string, string> | undefined;
|
|
10455
10821
|
baseURL?: string | undefined;
|
|
10456
10822
|
streamRate?: number | undefined;
|
|
10457
10823
|
titlePrompt?: string | undefined;
|
|
@@ -10474,6 +10840,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10474
10840
|
} | undefined;
|
|
10475
10841
|
allowedAddresses?: string[] | undefined;
|
|
10476
10842
|
all?: {
|
|
10843
|
+
headers?: Record<string, string> | undefined;
|
|
10477
10844
|
streamRate?: number | undefined;
|
|
10478
10845
|
titlePrompt?: string | undefined;
|
|
10479
10846
|
titleModel?: string | undefined;
|
|
@@ -10541,33 +10908,6 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10541
10908
|
validKeys?: string[] | undefined;
|
|
10542
10909
|
tokenLimit?: number | undefined;
|
|
10543
10910
|
} | undefined;
|
|
10544
|
-
summarization?: {
|
|
10545
|
-
model?: string | undefined;
|
|
10546
|
-
prompt?: string | undefined;
|
|
10547
|
-
enabled?: boolean | undefined;
|
|
10548
|
-
provider?: string | undefined;
|
|
10549
|
-
parameters?: Record<string, string | number | boolean | null> | undefined;
|
|
10550
|
-
trigger?: {
|
|
10551
|
-
type: "token_ratio";
|
|
10552
|
-
value: number;
|
|
10553
|
-
} | {
|
|
10554
|
-
type: "remaining_tokens";
|
|
10555
|
-
value: number;
|
|
10556
|
-
} | {
|
|
10557
|
-
type: "messages_to_refine";
|
|
10558
|
-
value: number;
|
|
10559
|
-
} | undefined;
|
|
10560
|
-
updatePrompt?: string | undefined;
|
|
10561
|
-
reserveRatio?: number | undefined;
|
|
10562
|
-
maxSummaryTokens?: number | undefined;
|
|
10563
|
-
contextPruning?: {
|
|
10564
|
-
enabled?: boolean | undefined;
|
|
10565
|
-
keepLastAssistants?: number | undefined;
|
|
10566
|
-
softTrimRatio?: number | undefined;
|
|
10567
|
-
hardClearRatio?: number | undefined;
|
|
10568
|
-
minPrunableToolChars?: number | undefined;
|
|
10569
|
-
} | undefined;
|
|
10570
|
-
} | undefined;
|
|
10571
10911
|
skillSync?: {
|
|
10572
10912
|
github?: {
|
|
10573
10913
|
enabled: boolean;
|
|
@@ -10728,6 +11068,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10728
11068
|
endpoint: string | null;
|
|
10729
11069
|
model?: string | null | undefined;
|
|
10730
11070
|
endpointType?: EModelEndpoint | null | undefined;
|
|
11071
|
+
pinned?: boolean | undefined;
|
|
10731
11072
|
tools?: string[] | {
|
|
10732
11073
|
name: string;
|
|
10733
11074
|
pluginKey: string;
|
|
@@ -10758,6 +11099,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10758
11099
|
maxContextTokens?: number | undefined;
|
|
10759
11100
|
max_tokens?: number | undefined;
|
|
10760
11101
|
promptCache?: boolean | undefined;
|
|
11102
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
10761
11103
|
system?: string | undefined;
|
|
10762
11104
|
thinking?: boolean | undefined;
|
|
10763
11105
|
thinkingBudget?: number | undefined;
|
|
@@ -10832,6 +11174,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10832
11174
|
showIconInMenu?: boolean | undefined;
|
|
10833
11175
|
showIconInHeader?: boolean | undefined;
|
|
10834
11176
|
showOnLanding?: boolean | undefined;
|
|
11177
|
+
conversation_starters?: string[] | undefined;
|
|
10835
11178
|
authType?: import("./schemas").AuthType | undefined;
|
|
10836
11179
|
hideBadgeRow?: boolean | undefined;
|
|
10837
11180
|
webSearch?: boolean | undefined;
|
|
@@ -10859,6 +11202,33 @@ export declare const configSchema: z.ZodObject<{
|
|
|
10859
11202
|
} | undefined;
|
|
10860
11203
|
}, {
|
|
10861
11204
|
version: string;
|
|
11205
|
+
summarization?: {
|
|
11206
|
+
model?: string | undefined;
|
|
11207
|
+
prompt?: string | undefined;
|
|
11208
|
+
enabled?: boolean | undefined;
|
|
11209
|
+
provider?: string | undefined;
|
|
11210
|
+
parameters?: Record<string, string | number | boolean | null> | undefined;
|
|
11211
|
+
trigger?: {
|
|
11212
|
+
type: "token_ratio";
|
|
11213
|
+
value: number;
|
|
11214
|
+
} | {
|
|
11215
|
+
type: "remaining_tokens";
|
|
11216
|
+
value: number;
|
|
11217
|
+
} | {
|
|
11218
|
+
type: "messages_to_refine";
|
|
11219
|
+
value: number;
|
|
11220
|
+
} | undefined;
|
|
11221
|
+
updatePrompt?: string | undefined;
|
|
11222
|
+
reserveRatio?: number | undefined;
|
|
11223
|
+
maxSummaryTokens?: number | undefined;
|
|
11224
|
+
contextPruning?: {
|
|
11225
|
+
enabled?: boolean | undefined;
|
|
11226
|
+
keepLastAssistants?: number | undefined;
|
|
11227
|
+
softTrimRatio?: number | undefined;
|
|
11228
|
+
hardClearRatio?: number | undefined;
|
|
11229
|
+
minPrunableToolChars?: number | undefined;
|
|
11230
|
+
} | undefined;
|
|
11231
|
+
} | undefined;
|
|
10862
11232
|
webSearch?: {
|
|
10863
11233
|
serperApiKey?: string | undefined;
|
|
10864
11234
|
searxngInstanceUrl?: string | undefined;
|
|
@@ -11160,6 +11530,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11160
11530
|
titleTiming?: "immediate" | "final" | undefined;
|
|
11161
11531
|
}) | undefined;
|
|
11162
11532
|
openAI?: {
|
|
11533
|
+
headers?: Record<string, string> | undefined;
|
|
11163
11534
|
baseURL?: string | undefined;
|
|
11164
11535
|
streamRate?: number | undefined;
|
|
11165
11536
|
titlePrompt?: string | undefined;
|
|
@@ -11172,6 +11543,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11172
11543
|
maxToolResultChars?: number | undefined;
|
|
11173
11544
|
} | undefined;
|
|
11174
11545
|
google?: {
|
|
11546
|
+
headers?: Record<string, string> | undefined;
|
|
11175
11547
|
baseURL?: string | undefined;
|
|
11176
11548
|
streamRate?: number | undefined;
|
|
11177
11549
|
titlePrompt?: string | undefined;
|
|
@@ -11184,6 +11556,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11184
11556
|
maxToolResultChars?: number | undefined;
|
|
11185
11557
|
} | undefined;
|
|
11186
11558
|
anthropic?: {
|
|
11559
|
+
headers?: Record<string, string> | undefined;
|
|
11187
11560
|
baseURL?: string | undefined;
|
|
11188
11561
|
streamRate?: number | undefined;
|
|
11189
11562
|
titlePrompt?: string | undefined;
|
|
@@ -11272,6 +11645,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11272
11645
|
skills?: {
|
|
11273
11646
|
maxCatalogSkills?: number | undefined;
|
|
11274
11647
|
} | undefined;
|
|
11648
|
+
headers?: Record<string, string> | undefined;
|
|
11275
11649
|
streamRate?: number | undefined;
|
|
11276
11650
|
titlePrompt?: string | undefined;
|
|
11277
11651
|
titleModel?: string | undefined;
|
|
@@ -11310,6 +11684,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11310
11684
|
apiKey?: string | undefined;
|
|
11311
11685
|
headers?: Record<string, string> | undefined;
|
|
11312
11686
|
baseURL?: string | undefined;
|
|
11687
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
11313
11688
|
streamRate?: number | undefined;
|
|
11314
11689
|
titlePrompt?: string | undefined;
|
|
11315
11690
|
titleModel?: string | undefined;
|
|
@@ -11371,8 +11746,16 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11371
11746
|
} | undefined;
|
|
11372
11747
|
directEndpoint?: boolean | undefined;
|
|
11373
11748
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
11749
|
+
tokenConfig?: Record<string, {
|
|
11750
|
+
context: number;
|
|
11751
|
+
prompt: number;
|
|
11752
|
+
completion: number;
|
|
11753
|
+
cacheRead?: number | undefined;
|
|
11754
|
+
cacheWrite?: number | undefined;
|
|
11755
|
+
}> | undefined;
|
|
11374
11756
|
}[] | undefined;
|
|
11375
11757
|
bedrock?: {
|
|
11758
|
+
headers?: Record<string, string> | undefined;
|
|
11376
11759
|
baseURL?: string | undefined;
|
|
11377
11760
|
streamRate?: number | undefined;
|
|
11378
11761
|
titlePrompt?: string | undefined;
|
|
@@ -11395,6 +11778,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11395
11778
|
} | undefined;
|
|
11396
11779
|
allowedAddresses?: string[] | undefined;
|
|
11397
11780
|
all?: {
|
|
11781
|
+
headers?: Record<string, string> | undefined;
|
|
11398
11782
|
streamRate?: number | undefined;
|
|
11399
11783
|
titlePrompt?: string | undefined;
|
|
11400
11784
|
titleModel?: string | undefined;
|
|
@@ -11463,33 +11847,6 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11463
11847
|
personalize?: boolean | undefined;
|
|
11464
11848
|
messageWindowSize?: number | undefined;
|
|
11465
11849
|
} | undefined;
|
|
11466
|
-
summarization?: {
|
|
11467
|
-
model?: string | undefined;
|
|
11468
|
-
prompt?: string | undefined;
|
|
11469
|
-
enabled?: boolean | undefined;
|
|
11470
|
-
provider?: string | undefined;
|
|
11471
|
-
parameters?: Record<string, string | number | boolean | null> | undefined;
|
|
11472
|
-
trigger?: {
|
|
11473
|
-
type: "token_ratio";
|
|
11474
|
-
value: number;
|
|
11475
|
-
} | {
|
|
11476
|
-
type: "remaining_tokens";
|
|
11477
|
-
value: number;
|
|
11478
|
-
} | {
|
|
11479
|
-
type: "messages_to_refine";
|
|
11480
|
-
value: number;
|
|
11481
|
-
} | undefined;
|
|
11482
|
-
updatePrompt?: string | undefined;
|
|
11483
|
-
reserveRatio?: number | undefined;
|
|
11484
|
-
maxSummaryTokens?: number | undefined;
|
|
11485
|
-
contextPruning?: {
|
|
11486
|
-
enabled?: boolean | undefined;
|
|
11487
|
-
keepLastAssistants?: number | undefined;
|
|
11488
|
-
softTrimRatio?: number | undefined;
|
|
11489
|
-
hardClearRatio?: number | undefined;
|
|
11490
|
-
minPrunableToolChars?: number | undefined;
|
|
11491
|
-
} | undefined;
|
|
11492
|
-
} | undefined;
|
|
11493
11850
|
skillSync?: {
|
|
11494
11851
|
github?: {
|
|
11495
11852
|
enabled?: boolean | undefined;
|
|
@@ -11574,6 +11931,12 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11574
11931
|
retentionMode?: RetentionMode | undefined;
|
|
11575
11932
|
retainAgentFiles?: boolean | undefined;
|
|
11576
11933
|
runCode?: boolean | undefined;
|
|
11934
|
+
contextUsage?: boolean | undefined;
|
|
11935
|
+
contextCost?: boolean | undefined;
|
|
11936
|
+
currency?: {
|
|
11937
|
+
code: string;
|
|
11938
|
+
rate: number;
|
|
11939
|
+
} | undefined;
|
|
11577
11940
|
peoplePicker?: {
|
|
11578
11941
|
users?: boolean | undefined;
|
|
11579
11942
|
groups?: boolean | undefined;
|
|
@@ -11736,6 +12099,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11736
12099
|
endpoint: string | null;
|
|
11737
12100
|
model?: string | null | undefined;
|
|
11738
12101
|
endpointType?: EModelEndpoint | null | undefined;
|
|
12102
|
+
pinned?: boolean | undefined;
|
|
11739
12103
|
tools?: string[] | {
|
|
11740
12104
|
name: string;
|
|
11741
12105
|
pluginKey: string;
|
|
@@ -11766,6 +12130,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11766
12130
|
maxContextTokens?: string | number | undefined;
|
|
11767
12131
|
max_tokens?: string | number | undefined;
|
|
11768
12132
|
promptCache?: boolean | undefined;
|
|
12133
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
11769
12134
|
system?: string | undefined;
|
|
11770
12135
|
thinking?: boolean | undefined;
|
|
11771
12136
|
thinkingBudget?: string | number | undefined;
|
|
@@ -11840,6 +12205,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
11840
12205
|
showIconInMenu?: boolean | undefined;
|
|
11841
12206
|
showIconInHeader?: boolean | undefined;
|
|
11842
12207
|
showOnLanding?: boolean | undefined;
|
|
12208
|
+
conversation_starters?: string[] | undefined;
|
|
11843
12209
|
authType?: import("./schemas").AuthType | undefined;
|
|
11844
12210
|
hideBadgeRow?: boolean | undefined;
|
|
11845
12211
|
webSearch?: boolean | undefined;
|
|
@@ -13589,6 +13955,18 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
13589
13955
|
retainAgentFiles: z.ZodOptional<z.ZodBoolean>;
|
|
13590
13956
|
runCode: z.ZodOptional<z.ZodBoolean>;
|
|
13591
13957
|
webSearch: z.ZodOptional<z.ZodBoolean>;
|
|
13958
|
+
contextUsage: z.ZodOptional<z.ZodBoolean>;
|
|
13959
|
+
contextCost: z.ZodOptional<z.ZodBoolean>;
|
|
13960
|
+
currency: z.ZodOptional<z.ZodObject<{
|
|
13961
|
+
code: z.ZodString;
|
|
13962
|
+
rate: z.ZodNumber;
|
|
13963
|
+
}, "strip", z.ZodTypeAny, {
|
|
13964
|
+
code: string;
|
|
13965
|
+
rate: number;
|
|
13966
|
+
}, {
|
|
13967
|
+
code: string;
|
|
13968
|
+
rate: number;
|
|
13969
|
+
}>>;
|
|
13592
13970
|
peoplePicker: z.ZodOptional<z.ZodObject<{
|
|
13593
13971
|
users: z.ZodOptional<z.ZodBoolean>;
|
|
13594
13972
|
groups: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -13718,6 +14096,12 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
13718
14096
|
autoSubmitFromUrl?: boolean | undefined;
|
|
13719
14097
|
retainAgentFiles?: boolean | undefined;
|
|
13720
14098
|
runCode?: boolean | undefined;
|
|
14099
|
+
contextUsage?: boolean | undefined;
|
|
14100
|
+
contextCost?: boolean | undefined;
|
|
14101
|
+
currency?: {
|
|
14102
|
+
code: string;
|
|
14103
|
+
rate: number;
|
|
14104
|
+
} | undefined;
|
|
13721
14105
|
peoplePicker?: {
|
|
13722
14106
|
users?: boolean | undefined;
|
|
13723
14107
|
groups?: boolean | undefined;
|
|
@@ -13797,6 +14181,12 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
13797
14181
|
retentionMode?: RetentionMode | undefined;
|
|
13798
14182
|
retainAgentFiles?: boolean | undefined;
|
|
13799
14183
|
runCode?: boolean | undefined;
|
|
14184
|
+
contextUsage?: boolean | undefined;
|
|
14185
|
+
contextCost?: boolean | undefined;
|
|
14186
|
+
currency?: {
|
|
14187
|
+
code: string;
|
|
14188
|
+
rate: number;
|
|
14189
|
+
} | undefined;
|
|
13800
14190
|
peoplePicker?: {
|
|
13801
14191
|
users?: boolean | undefined;
|
|
13802
14192
|
groups?: boolean | undefined;
|
|
@@ -14726,6 +15116,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
14726
15116
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14727
15117
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof EModelEndpoint>>>;
|
|
14728
15118
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
15119
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
14729
15120
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14730
15121
|
tools: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
14731
15122
|
name: z.ZodString;
|
|
@@ -14802,6 +15193,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
14802
15193
|
maxContextTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
14803
15194
|
max_tokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
14804
15195
|
promptCache: z.ZodOptional<z.ZodBoolean>;
|
|
15196
|
+
promptCacheTtl: z.ZodOptional<z.ZodEnum<["5m", "1h"]>>;
|
|
14805
15197
|
system: z.ZodOptional<z.ZodString>;
|
|
14806
15198
|
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
14807
15199
|
thinkingBudget: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
@@ -14927,6 +15319,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
14927
15319
|
endpoint: string | null;
|
|
14928
15320
|
model?: string | null | undefined;
|
|
14929
15321
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15322
|
+
pinned?: boolean | undefined;
|
|
14930
15323
|
tools?: string[] | {
|
|
14931
15324
|
name: string;
|
|
14932
15325
|
pluginKey: string;
|
|
@@ -14957,6 +15350,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
14957
15350
|
maxContextTokens?: number | undefined;
|
|
14958
15351
|
max_tokens?: number | undefined;
|
|
14959
15352
|
promptCache?: boolean | undefined;
|
|
15353
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
14960
15354
|
system?: string | undefined;
|
|
14961
15355
|
thinking?: boolean | undefined;
|
|
14962
15356
|
thinkingBudget?: number | undefined;
|
|
@@ -15023,6 +15417,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15023
15417
|
endpoint: string | null;
|
|
15024
15418
|
model?: string | null | undefined;
|
|
15025
15419
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15420
|
+
pinned?: boolean | undefined;
|
|
15026
15421
|
tools?: string[] | {
|
|
15027
15422
|
name: string;
|
|
15028
15423
|
pluginKey: string;
|
|
@@ -15053,6 +15448,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15053
15448
|
maxContextTokens?: string | number | undefined;
|
|
15054
15449
|
max_tokens?: string | number | undefined;
|
|
15055
15450
|
promptCache?: boolean | undefined;
|
|
15451
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
15056
15452
|
system?: string | undefined;
|
|
15057
15453
|
thinking?: boolean | undefined;
|
|
15058
15454
|
thinkingBudget?: string | number | undefined;
|
|
@@ -15125,6 +15521,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15125
15521
|
showIconInMenu: z.ZodOptional<z.ZodBoolean>;
|
|
15126
15522
|
showIconInHeader: z.ZodOptional<z.ZodBoolean>;
|
|
15127
15523
|
showOnLanding: z.ZodOptional<z.ZodBoolean>;
|
|
15524
|
+
conversation_starters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15128
15525
|
iconURL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<typeof EModelEndpoint>]>>;
|
|
15129
15526
|
authType: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").AuthType>>;
|
|
15130
15527
|
hideBadgeRow: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -15154,6 +15551,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15154
15551
|
endpoint: string | null;
|
|
15155
15552
|
model?: string | null | undefined;
|
|
15156
15553
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15554
|
+
pinned?: boolean | undefined;
|
|
15157
15555
|
tools?: string[] | {
|
|
15158
15556
|
name: string;
|
|
15159
15557
|
pluginKey: string;
|
|
@@ -15184,6 +15582,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15184
15582
|
maxContextTokens?: number | undefined;
|
|
15185
15583
|
max_tokens?: number | undefined;
|
|
15186
15584
|
promptCache?: boolean | undefined;
|
|
15585
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
15187
15586
|
system?: string | undefined;
|
|
15188
15587
|
thinking?: boolean | undefined;
|
|
15189
15588
|
thinkingBudget?: number | undefined;
|
|
@@ -15258,6 +15657,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15258
15657
|
showIconInMenu?: boolean | undefined;
|
|
15259
15658
|
showIconInHeader?: boolean | undefined;
|
|
15260
15659
|
showOnLanding?: boolean | undefined;
|
|
15660
|
+
conversation_starters?: string[] | undefined;
|
|
15261
15661
|
authType?: import("./schemas").AuthType | undefined;
|
|
15262
15662
|
hideBadgeRow?: boolean | undefined;
|
|
15263
15663
|
webSearch?: boolean | undefined;
|
|
@@ -15277,6 +15677,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15277
15677
|
endpoint: string | null;
|
|
15278
15678
|
model?: string | null | undefined;
|
|
15279
15679
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15680
|
+
pinned?: boolean | undefined;
|
|
15280
15681
|
tools?: string[] | {
|
|
15281
15682
|
name: string;
|
|
15282
15683
|
pluginKey: string;
|
|
@@ -15307,6 +15708,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15307
15708
|
maxContextTokens?: string | number | undefined;
|
|
15308
15709
|
max_tokens?: string | number | undefined;
|
|
15309
15710
|
promptCache?: boolean | undefined;
|
|
15711
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
15310
15712
|
system?: string | undefined;
|
|
15311
15713
|
thinking?: boolean | undefined;
|
|
15312
15714
|
thinkingBudget?: string | number | undefined;
|
|
@@ -15381,6 +15783,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15381
15783
|
showIconInMenu?: boolean | undefined;
|
|
15382
15784
|
showIconInHeader?: boolean | undefined;
|
|
15383
15785
|
showOnLanding?: boolean | undefined;
|
|
15786
|
+
conversation_starters?: string[] | undefined;
|
|
15384
15787
|
authType?: import("./schemas").AuthType | undefined;
|
|
15385
15788
|
hideBadgeRow?: boolean | undefined;
|
|
15386
15789
|
webSearch?: boolean | undefined;
|
|
@@ -15405,6 +15808,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15405
15808
|
endpoint: string | null;
|
|
15406
15809
|
model?: string | null | undefined;
|
|
15407
15810
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15811
|
+
pinned?: boolean | undefined;
|
|
15408
15812
|
tools?: string[] | {
|
|
15409
15813
|
name: string;
|
|
15410
15814
|
pluginKey: string;
|
|
@@ -15435,6 +15839,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15435
15839
|
maxContextTokens?: number | undefined;
|
|
15436
15840
|
max_tokens?: number | undefined;
|
|
15437
15841
|
promptCache?: boolean | undefined;
|
|
15842
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
15438
15843
|
system?: string | undefined;
|
|
15439
15844
|
thinking?: boolean | undefined;
|
|
15440
15845
|
thinkingBudget?: number | undefined;
|
|
@@ -15509,6 +15914,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15509
15914
|
showIconInMenu?: boolean | undefined;
|
|
15510
15915
|
showIconInHeader?: boolean | undefined;
|
|
15511
15916
|
showOnLanding?: boolean | undefined;
|
|
15917
|
+
conversation_starters?: string[] | undefined;
|
|
15512
15918
|
authType?: import("./schemas").AuthType | undefined;
|
|
15513
15919
|
hideBadgeRow?: boolean | undefined;
|
|
15514
15920
|
webSearch?: boolean | undefined;
|
|
@@ -15533,6 +15939,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15533
15939
|
endpoint: string | null;
|
|
15534
15940
|
model?: string | null | undefined;
|
|
15535
15941
|
endpointType?: EModelEndpoint | null | undefined;
|
|
15942
|
+
pinned?: boolean | undefined;
|
|
15536
15943
|
tools?: string[] | {
|
|
15537
15944
|
name: string;
|
|
15538
15945
|
pluginKey: string;
|
|
@@ -15563,6 +15970,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15563
15970
|
maxContextTokens?: string | number | undefined;
|
|
15564
15971
|
max_tokens?: string | number | undefined;
|
|
15565
15972
|
promptCache?: boolean | undefined;
|
|
15973
|
+
promptCacheTtl?: "5m" | "1h" | undefined;
|
|
15566
15974
|
system?: string | undefined;
|
|
15567
15975
|
thinking?: boolean | undefined;
|
|
15568
15976
|
thinkingBudget?: string | number | undefined;
|
|
@@ -15637,6 +16045,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15637
16045
|
showIconInMenu?: boolean | undefined;
|
|
15638
16046
|
showIconInHeader?: boolean | undefined;
|
|
15639
16047
|
showOnLanding?: boolean | undefined;
|
|
16048
|
+
conversation_starters?: string[] | undefined;
|
|
15640
16049
|
authType?: import("./schemas").AuthType | undefined;
|
|
15641
16050
|
hideBadgeRow?: boolean | undefined;
|
|
15642
16051
|
webSearch?: boolean | undefined;
|
|
@@ -15707,6 +16116,15 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15707
16116
|
all: z.ZodOptional<z.ZodObject<Omit<{
|
|
15708
16117
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
15709
16118
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
16119
|
+
/**
|
|
16120
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
16121
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
16122
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
16123
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
16124
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
16125
|
+
* headers (provider-native request shaping is preserved).
|
|
16126
|
+
*/
|
|
16127
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15710
16128
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
15711
16129
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
15712
16130
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -15723,6 +16141,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15723
16141
|
/** Maximum characters allowed in a single tool result before truncation. */
|
|
15724
16142
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
15725
16143
|
}, "baseURL">, "strip", z.ZodTypeAny, {
|
|
16144
|
+
headers?: Record<string, string> | undefined;
|
|
15726
16145
|
streamRate?: number | undefined;
|
|
15727
16146
|
titlePrompt?: string | undefined;
|
|
15728
16147
|
titleModel?: string | undefined;
|
|
@@ -15733,6 +16152,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15733
16152
|
titleTiming?: "immediate" | "final" | undefined;
|
|
15734
16153
|
maxToolResultChars?: number | undefined;
|
|
15735
16154
|
}, {
|
|
16155
|
+
headers?: Record<string, string> | undefined;
|
|
15736
16156
|
streamRate?: number | undefined;
|
|
15737
16157
|
titlePrompt?: string | undefined;
|
|
15738
16158
|
titleModel?: string | undefined;
|
|
@@ -15746,6 +16166,15 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15746
16166
|
openAI: z.ZodOptional<z.ZodObject<{
|
|
15747
16167
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
15748
16168
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
16169
|
+
/**
|
|
16170
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
16171
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
16172
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
16173
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
16174
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
16175
|
+
* headers (provider-native request shaping is preserved).
|
|
16176
|
+
*/
|
|
16177
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15749
16178
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
15750
16179
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
15751
16180
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -15762,6 +16191,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15762
16191
|
/** Maximum characters allowed in a single tool result before truncation. */
|
|
15763
16192
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
15764
16193
|
}, "strip", z.ZodTypeAny, {
|
|
16194
|
+
headers?: Record<string, string> | undefined;
|
|
15765
16195
|
baseURL?: string | undefined;
|
|
15766
16196
|
streamRate?: number | undefined;
|
|
15767
16197
|
titlePrompt?: string | undefined;
|
|
@@ -15773,6 +16203,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15773
16203
|
titleTiming?: "immediate" | "final" | undefined;
|
|
15774
16204
|
maxToolResultChars?: number | undefined;
|
|
15775
16205
|
}, {
|
|
16206
|
+
headers?: Record<string, string> | undefined;
|
|
15776
16207
|
baseURL?: string | undefined;
|
|
15777
16208
|
streamRate?: number | undefined;
|
|
15778
16209
|
titlePrompt?: string | undefined;
|
|
@@ -15787,6 +16218,15 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15787
16218
|
google: z.ZodOptional<z.ZodObject<{
|
|
15788
16219
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
15789
16220
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
16221
|
+
/**
|
|
16222
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
16223
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
16224
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
16225
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
16226
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
16227
|
+
* headers (provider-native request shaping is preserved).
|
|
16228
|
+
*/
|
|
16229
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15790
16230
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
15791
16231
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
15792
16232
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -15803,6 +16243,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15803
16243
|
/** Maximum characters allowed in a single tool result before truncation. */
|
|
15804
16244
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
15805
16245
|
}, "strip", z.ZodTypeAny, {
|
|
16246
|
+
headers?: Record<string, string> | undefined;
|
|
15806
16247
|
baseURL?: string | undefined;
|
|
15807
16248
|
streamRate?: number | undefined;
|
|
15808
16249
|
titlePrompt?: string | undefined;
|
|
@@ -15814,6 +16255,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15814
16255
|
titleTiming?: "immediate" | "final" | undefined;
|
|
15815
16256
|
maxToolResultChars?: number | undefined;
|
|
15816
16257
|
}, {
|
|
16258
|
+
headers?: Record<string, string> | undefined;
|
|
15817
16259
|
baseURL?: string | undefined;
|
|
15818
16260
|
streamRate?: number | undefined;
|
|
15819
16261
|
titlePrompt?: string | undefined;
|
|
@@ -15828,6 +16270,15 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15828
16270
|
anthropic: z.ZodOptional<z.ZodObject<{
|
|
15829
16271
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
15830
16272
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
16273
|
+
/**
|
|
16274
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
16275
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
16276
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
16277
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
16278
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
16279
|
+
* headers (provider-native request shaping is preserved).
|
|
16280
|
+
*/
|
|
16281
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15831
16282
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
15832
16283
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
15833
16284
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -15887,6 +16338,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15887
16338
|
/** Optional: List of available models */
|
|
15888
16339
|
models: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15889
16340
|
}, "strip", z.ZodTypeAny, {
|
|
16341
|
+
headers?: Record<string, string> | undefined;
|
|
15890
16342
|
baseURL?: string | undefined;
|
|
15891
16343
|
streamRate?: number | undefined;
|
|
15892
16344
|
titlePrompt?: string | undefined;
|
|
@@ -15909,6 +16361,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
15909
16361
|
}> | undefined;
|
|
15910
16362
|
} | undefined;
|
|
15911
16363
|
}, {
|
|
16364
|
+
headers?: Record<string, string> | undefined;
|
|
15912
16365
|
baseURL?: string | undefined;
|
|
15913
16366
|
streamRate?: number | undefined;
|
|
15914
16367
|
titlePrompt?: string | undefined;
|
|
@@ -16072,14 +16525,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16072
16525
|
titleMethod: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"completion">, z.ZodLiteral<"functions">, z.ZodLiteral<"structured">]>>;
|
|
16073
16526
|
titleEndpoint: z.ZodOptional<z.ZodString>;
|
|
16074
16527
|
titlePromptTemplate: z.ZodOptional<z.ZodString>;
|
|
16075
|
-
/**
|
|
16076
|
-
* When conversation titles are generated. `immediate` (default) generates the
|
|
16077
|
-
* title as soon as the request is made, in parallel with the response, from the
|
|
16078
|
-
* user's first message. `final` defers generation until the full response
|
|
16079
|
-
* completes (legacy behavior).
|
|
16080
|
-
*/
|
|
16081
16528
|
titleTiming: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"immediate">, z.ZodLiteral<"final">]>>;
|
|
16082
|
-
/** Maximum characters allowed in a single tool result before truncation. */
|
|
16083
16529
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
16084
16530
|
} & {
|
|
16085
16531
|
disableBuilder: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -16191,14 +16637,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16191
16637
|
titleMethod: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"completion">, z.ZodLiteral<"functions">, z.ZodLiteral<"structured">]>>;
|
|
16192
16638
|
titleEndpoint: z.ZodOptional<z.ZodString>;
|
|
16193
16639
|
titlePromptTemplate: z.ZodOptional<z.ZodString>;
|
|
16194
|
-
/**
|
|
16195
|
-
* When conversation titles are generated. `immediate` (default) generates the
|
|
16196
|
-
* title as soon as the request is made, in parallel with the response, from the
|
|
16197
|
-
* user's first message. `final` defers generation until the full response
|
|
16198
|
-
* completes (legacy behavior).
|
|
16199
|
-
*/
|
|
16200
16640
|
titleTiming: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"immediate">, z.ZodLiteral<"final">]>>;
|
|
16201
|
-
/** Maximum characters allowed in a single tool result before truncation. */
|
|
16202
16641
|
maxToolResultChars: z.ZodOptional<z.ZodNumber>;
|
|
16203
16642
|
} & {
|
|
16204
16643
|
disableBuilder: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -16304,6 +16743,15 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16304
16743
|
agents: z.ZodOptional<z.ZodDefault<z.ZodObject<Omit<{
|
|
16305
16744
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
16306
16745
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
16746
|
+
/**
|
|
16747
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
16748
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
16749
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
16750
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
16751
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
16752
|
+
* headers (provider-native request shaping is preserved).
|
|
16753
|
+
*/
|
|
16754
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
16307
16755
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
16308
16756
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
16309
16757
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -16434,6 +16882,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16434
16882
|
skills?: {
|
|
16435
16883
|
maxCatalogSkills?: number | undefined;
|
|
16436
16884
|
} | undefined;
|
|
16885
|
+
headers?: Record<string, string> | undefined;
|
|
16437
16886
|
streamRate?: number | undefined;
|
|
16438
16887
|
titlePrompt?: string | undefined;
|
|
16439
16888
|
titleModel?: string | undefined;
|
|
@@ -16464,6 +16913,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16464
16913
|
skills?: {
|
|
16465
16914
|
maxCatalogSkills?: number | undefined;
|
|
16466
16915
|
} | undefined;
|
|
16916
|
+
headers?: Record<string, string> | undefined;
|
|
16467
16917
|
streamRate?: number | undefined;
|
|
16468
16918
|
titlePrompt?: string | undefined;
|
|
16469
16919
|
titleModel?: string | undefined;
|
|
@@ -16539,6 +16989,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16539
16989
|
}>>;
|
|
16540
16990
|
iconURL: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
16541
16991
|
modelDisplayLabel: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
16992
|
+
provider: z.ZodOptional<z.ZodOptional<z.ZodLiteral<EModelEndpoint.anthropic>>>;
|
|
16542
16993
|
headers: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
16543
16994
|
addParams: z.ZodOptional<z.ZodOptional<z.ZodType<Record<string, unknown>, z.ZodTypeDef, Record<string, unknown>>>>;
|
|
16544
16995
|
dropParams: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -16733,12 +17184,32 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16733
17184
|
}>>>;
|
|
16734
17185
|
directEndpoint: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
16735
17186
|
titleMessageRole: z.ZodOptional<z.ZodOptional<z.ZodEnum<["system", "user", "assistant"]>>>;
|
|
17187
|
+
tokenConfig: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
17188
|
+
prompt: z.ZodNumber;
|
|
17189
|
+
completion: z.ZodNumber;
|
|
17190
|
+
context: z.ZodNumber;
|
|
17191
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
17192
|
+
cacheWrite: z.ZodOptional<z.ZodNumber>;
|
|
17193
|
+
}, "strip", z.ZodTypeAny, {
|
|
17194
|
+
context: number;
|
|
17195
|
+
prompt: number;
|
|
17196
|
+
completion: number;
|
|
17197
|
+
cacheRead?: number | undefined;
|
|
17198
|
+
cacheWrite?: number | undefined;
|
|
17199
|
+
}, {
|
|
17200
|
+
context: number;
|
|
17201
|
+
prompt: number;
|
|
17202
|
+
completion: number;
|
|
17203
|
+
cacheRead?: number | undefined;
|
|
17204
|
+
cacheWrite?: number | undefined;
|
|
17205
|
+
}>>>>;
|
|
16736
17206
|
}, "strip", z.ZodTypeAny, {
|
|
16737
17207
|
name?: string | undefined;
|
|
16738
17208
|
iconURL?: string | undefined;
|
|
16739
17209
|
apiKey?: string | undefined;
|
|
16740
17210
|
headers?: Record<string, string> | undefined;
|
|
16741
17211
|
baseURL?: string | undefined;
|
|
17212
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
16742
17213
|
streamRate?: number | undefined;
|
|
16743
17214
|
titlePrompt?: string | undefined;
|
|
16744
17215
|
titleModel?: string | undefined;
|
|
@@ -16800,12 +17271,20 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16800
17271
|
} | undefined;
|
|
16801
17272
|
directEndpoint?: boolean | undefined;
|
|
16802
17273
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
17274
|
+
tokenConfig?: Record<string, {
|
|
17275
|
+
context: number;
|
|
17276
|
+
prompt: number;
|
|
17277
|
+
completion: number;
|
|
17278
|
+
cacheRead?: number | undefined;
|
|
17279
|
+
cacheWrite?: number | undefined;
|
|
17280
|
+
}> | undefined;
|
|
16803
17281
|
}, {
|
|
16804
17282
|
name?: string | undefined;
|
|
16805
17283
|
iconURL?: string | undefined;
|
|
16806
17284
|
apiKey?: string | undefined;
|
|
16807
17285
|
headers?: Record<string, string> | undefined;
|
|
16808
17286
|
baseURL?: string | undefined;
|
|
17287
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
16809
17288
|
streamRate?: number | undefined;
|
|
16810
17289
|
titlePrompt?: string | undefined;
|
|
16811
17290
|
titleModel?: string | undefined;
|
|
@@ -16867,10 +17346,26 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16867
17346
|
} | undefined;
|
|
16868
17347
|
directEndpoint?: boolean | undefined;
|
|
16869
17348
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
17349
|
+
tokenConfig?: Record<string, {
|
|
17350
|
+
context: number;
|
|
17351
|
+
prompt: number;
|
|
17352
|
+
completion: number;
|
|
17353
|
+
cacheRead?: number | undefined;
|
|
17354
|
+
cacheWrite?: number | undefined;
|
|
17355
|
+
}> | undefined;
|
|
16870
17356
|
}>, "many">>>;
|
|
16871
17357
|
bedrock: z.ZodOptional<z.ZodObject<{
|
|
16872
17358
|
streamRate: z.ZodOptional<z.ZodNumber>;
|
|
16873
17359
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
17360
|
+
/**
|
|
17361
|
+
* Custom request headers forwarded to the provider on every request. Values
|
|
17362
|
+
* support the same placeholder resolution as custom endpoints — env vars
|
|
17363
|
+
* (`${VAR}`), user fields (`{{LIBRECHAT_USER_*}}`), and request-body fields
|
|
17364
|
+
* (`{{LIBRECHAT_BODY_CONVERSATIONID}}`). Primarily for routing built-in
|
|
17365
|
+
* providers through an AI gateway / reverse proxy that consumes metadata
|
|
17366
|
+
* headers (provider-native request shaping is preserved).
|
|
17367
|
+
*/
|
|
17368
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
16874
17369
|
titlePrompt: z.ZodOptional<z.ZodString>;
|
|
16875
17370
|
titleModel: z.ZodOptional<z.ZodString>;
|
|
16876
17371
|
titleConvo: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -16907,6 +17402,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16907
17402
|
}>>;
|
|
16908
17403
|
inferenceProfiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
16909
17404
|
}, "strip", z.ZodTypeAny, {
|
|
17405
|
+
headers?: Record<string, string> | undefined;
|
|
16910
17406
|
baseURL?: string | undefined;
|
|
16911
17407
|
streamRate?: number | undefined;
|
|
16912
17408
|
titlePrompt?: string | undefined;
|
|
@@ -16927,6 +17423,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16927
17423
|
} | undefined;
|
|
16928
17424
|
inferenceProfiles?: Record<string, string> | undefined;
|
|
16929
17425
|
}, {
|
|
17426
|
+
headers?: Record<string, string> | undefined;
|
|
16930
17427
|
baseURL?: string | undefined;
|
|
16931
17428
|
streamRate?: number | undefined;
|
|
16932
17429
|
titlePrompt?: string | undefined;
|
|
@@ -16979,6 +17476,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16979
17476
|
titleTiming?: "immediate" | "final" | undefined;
|
|
16980
17477
|
}) | undefined;
|
|
16981
17478
|
openAI?: {
|
|
17479
|
+
headers?: Record<string, string> | undefined;
|
|
16982
17480
|
baseURL?: string | undefined;
|
|
16983
17481
|
streamRate?: number | undefined;
|
|
16984
17482
|
titlePrompt?: string | undefined;
|
|
@@ -16991,6 +17489,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
16991
17489
|
maxToolResultChars?: number | undefined;
|
|
16992
17490
|
} | undefined;
|
|
16993
17491
|
google?: {
|
|
17492
|
+
headers?: Record<string, string> | undefined;
|
|
16994
17493
|
baseURL?: string | undefined;
|
|
16995
17494
|
streamRate?: number | undefined;
|
|
16996
17495
|
titlePrompt?: string | undefined;
|
|
@@ -17003,6 +17502,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17003
17502
|
maxToolResultChars?: number | undefined;
|
|
17004
17503
|
} | undefined;
|
|
17005
17504
|
anthropic?: {
|
|
17505
|
+
headers?: Record<string, string> | undefined;
|
|
17006
17506
|
baseURL?: string | undefined;
|
|
17007
17507
|
streamRate?: number | undefined;
|
|
17008
17508
|
titlePrompt?: string | undefined;
|
|
@@ -17096,6 +17596,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17096
17596
|
skills?: {
|
|
17097
17597
|
maxCatalogSkills?: number | undefined;
|
|
17098
17598
|
} | undefined;
|
|
17599
|
+
headers?: Record<string, string> | undefined;
|
|
17099
17600
|
streamRate?: number | undefined;
|
|
17100
17601
|
titlePrompt?: string | undefined;
|
|
17101
17602
|
titleModel?: string | undefined;
|
|
@@ -17129,6 +17630,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17129
17630
|
apiKey?: string | undefined;
|
|
17130
17631
|
headers?: Record<string, string> | undefined;
|
|
17131
17632
|
baseURL?: string | undefined;
|
|
17633
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
17132
17634
|
streamRate?: number | undefined;
|
|
17133
17635
|
titlePrompt?: string | undefined;
|
|
17134
17636
|
titleModel?: string | undefined;
|
|
@@ -17190,8 +17692,16 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17190
17692
|
} | undefined;
|
|
17191
17693
|
directEndpoint?: boolean | undefined;
|
|
17192
17694
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
17695
|
+
tokenConfig?: Record<string, {
|
|
17696
|
+
context: number;
|
|
17697
|
+
prompt: number;
|
|
17698
|
+
completion: number;
|
|
17699
|
+
cacheRead?: number | undefined;
|
|
17700
|
+
cacheWrite?: number | undefined;
|
|
17701
|
+
}> | undefined;
|
|
17193
17702
|
}[] | undefined;
|
|
17194
17703
|
bedrock?: {
|
|
17704
|
+
headers?: Record<string, string> | undefined;
|
|
17195
17705
|
baseURL?: string | undefined;
|
|
17196
17706
|
streamRate?: number | undefined;
|
|
17197
17707
|
titlePrompt?: string | undefined;
|
|
@@ -17214,6 +17724,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17214
17724
|
} | undefined;
|
|
17215
17725
|
allowedAddresses?: string[] | undefined;
|
|
17216
17726
|
all?: {
|
|
17727
|
+
headers?: Record<string, string> | undefined;
|
|
17217
17728
|
streamRate?: number | undefined;
|
|
17218
17729
|
titlePrompt?: string | undefined;
|
|
17219
17730
|
titleModel?: string | undefined;
|
|
@@ -17256,6 +17767,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17256
17767
|
titleTiming?: "immediate" | "final" | undefined;
|
|
17257
17768
|
}) | undefined;
|
|
17258
17769
|
openAI?: {
|
|
17770
|
+
headers?: Record<string, string> | undefined;
|
|
17259
17771
|
baseURL?: string | undefined;
|
|
17260
17772
|
streamRate?: number | undefined;
|
|
17261
17773
|
titlePrompt?: string | undefined;
|
|
@@ -17268,6 +17780,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17268
17780
|
maxToolResultChars?: number | undefined;
|
|
17269
17781
|
} | undefined;
|
|
17270
17782
|
google?: {
|
|
17783
|
+
headers?: Record<string, string> | undefined;
|
|
17271
17784
|
baseURL?: string | undefined;
|
|
17272
17785
|
streamRate?: number | undefined;
|
|
17273
17786
|
titlePrompt?: string | undefined;
|
|
@@ -17280,6 +17793,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17280
17793
|
maxToolResultChars?: number | undefined;
|
|
17281
17794
|
} | undefined;
|
|
17282
17795
|
anthropic?: {
|
|
17796
|
+
headers?: Record<string, string> | undefined;
|
|
17283
17797
|
baseURL?: string | undefined;
|
|
17284
17798
|
streamRate?: number | undefined;
|
|
17285
17799
|
titlePrompt?: string | undefined;
|
|
@@ -17368,6 +17882,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17368
17882
|
skills?: {
|
|
17369
17883
|
maxCatalogSkills?: number | undefined;
|
|
17370
17884
|
} | undefined;
|
|
17885
|
+
headers?: Record<string, string> | undefined;
|
|
17371
17886
|
streamRate?: number | undefined;
|
|
17372
17887
|
titlePrompt?: string | undefined;
|
|
17373
17888
|
titleModel?: string | undefined;
|
|
@@ -17406,6 +17921,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17406
17921
|
apiKey?: string | undefined;
|
|
17407
17922
|
headers?: Record<string, string> | undefined;
|
|
17408
17923
|
baseURL?: string | undefined;
|
|
17924
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
17409
17925
|
streamRate?: number | undefined;
|
|
17410
17926
|
titlePrompt?: string | undefined;
|
|
17411
17927
|
titleModel?: string | undefined;
|
|
@@ -17467,8 +17983,16 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17467
17983
|
} | undefined;
|
|
17468
17984
|
directEndpoint?: boolean | undefined;
|
|
17469
17985
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
17986
|
+
tokenConfig?: Record<string, {
|
|
17987
|
+
context: number;
|
|
17988
|
+
prompt: number;
|
|
17989
|
+
completion: number;
|
|
17990
|
+
cacheRead?: number | undefined;
|
|
17991
|
+
cacheWrite?: number | undefined;
|
|
17992
|
+
}> | undefined;
|
|
17470
17993
|
}[] | undefined;
|
|
17471
17994
|
bedrock?: {
|
|
17995
|
+
headers?: Record<string, string> | undefined;
|
|
17472
17996
|
baseURL?: string | undefined;
|
|
17473
17997
|
streamRate?: number | undefined;
|
|
17474
17998
|
titlePrompt?: string | undefined;
|
|
@@ -17491,6 +18015,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17491
18015
|
} | undefined;
|
|
17492
18016
|
allowedAddresses?: string[] | undefined;
|
|
17493
18017
|
all?: {
|
|
18018
|
+
headers?: Record<string, string> | undefined;
|
|
17494
18019
|
streamRate?: number | undefined;
|
|
17495
18020
|
titlePrompt?: string | undefined;
|
|
17496
18021
|
titleModel?: string | undefined;
|
|
@@ -17533,6 +18058,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17533
18058
|
titleTiming?: "immediate" | "final" | undefined;
|
|
17534
18059
|
}) | undefined;
|
|
17535
18060
|
openAI?: {
|
|
18061
|
+
headers?: Record<string, string> | undefined;
|
|
17536
18062
|
baseURL?: string | undefined;
|
|
17537
18063
|
streamRate?: number | undefined;
|
|
17538
18064
|
titlePrompt?: string | undefined;
|
|
@@ -17545,6 +18071,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17545
18071
|
maxToolResultChars?: number | undefined;
|
|
17546
18072
|
} | undefined;
|
|
17547
18073
|
google?: {
|
|
18074
|
+
headers?: Record<string, string> | undefined;
|
|
17548
18075
|
baseURL?: string | undefined;
|
|
17549
18076
|
streamRate?: number | undefined;
|
|
17550
18077
|
titlePrompt?: string | undefined;
|
|
@@ -17557,6 +18084,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17557
18084
|
maxToolResultChars?: number | undefined;
|
|
17558
18085
|
} | undefined;
|
|
17559
18086
|
anthropic?: {
|
|
18087
|
+
headers?: Record<string, string> | undefined;
|
|
17560
18088
|
baseURL?: string | undefined;
|
|
17561
18089
|
streamRate?: number | undefined;
|
|
17562
18090
|
titlePrompt?: string | undefined;
|
|
@@ -17650,6 +18178,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17650
18178
|
skills?: {
|
|
17651
18179
|
maxCatalogSkills?: number | undefined;
|
|
17652
18180
|
} | undefined;
|
|
18181
|
+
headers?: Record<string, string> | undefined;
|
|
17653
18182
|
streamRate?: number | undefined;
|
|
17654
18183
|
titlePrompt?: string | undefined;
|
|
17655
18184
|
titleModel?: string | undefined;
|
|
@@ -17683,6 +18212,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17683
18212
|
apiKey?: string | undefined;
|
|
17684
18213
|
headers?: Record<string, string> | undefined;
|
|
17685
18214
|
baseURL?: string | undefined;
|
|
18215
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
17686
18216
|
streamRate?: number | undefined;
|
|
17687
18217
|
titlePrompt?: string | undefined;
|
|
17688
18218
|
titleModel?: string | undefined;
|
|
@@ -17744,8 +18274,16 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17744
18274
|
} | undefined;
|
|
17745
18275
|
directEndpoint?: boolean | undefined;
|
|
17746
18276
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
18277
|
+
tokenConfig?: Record<string, {
|
|
18278
|
+
context: number;
|
|
18279
|
+
prompt: number;
|
|
18280
|
+
completion: number;
|
|
18281
|
+
cacheRead?: number | undefined;
|
|
18282
|
+
cacheWrite?: number | undefined;
|
|
18283
|
+
}> | undefined;
|
|
17747
18284
|
}[] | undefined;
|
|
17748
18285
|
bedrock?: {
|
|
18286
|
+
headers?: Record<string, string> | undefined;
|
|
17749
18287
|
baseURL?: string | undefined;
|
|
17750
18288
|
streamRate?: number | undefined;
|
|
17751
18289
|
titlePrompt?: string | undefined;
|
|
@@ -17768,6 +18306,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17768
18306
|
} | undefined;
|
|
17769
18307
|
allowedAddresses?: string[] | undefined;
|
|
17770
18308
|
all?: {
|
|
18309
|
+
headers?: Record<string, string> | undefined;
|
|
17771
18310
|
streamRate?: number | undefined;
|
|
17772
18311
|
titlePrompt?: string | undefined;
|
|
17773
18312
|
titleModel?: string | undefined;
|
|
@@ -17810,6 +18349,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17810
18349
|
titleTiming?: "immediate" | "final" | undefined;
|
|
17811
18350
|
}) | undefined;
|
|
17812
18351
|
openAI?: {
|
|
18352
|
+
headers?: Record<string, string> | undefined;
|
|
17813
18353
|
baseURL?: string | undefined;
|
|
17814
18354
|
streamRate?: number | undefined;
|
|
17815
18355
|
titlePrompt?: string | undefined;
|
|
@@ -17822,6 +18362,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17822
18362
|
maxToolResultChars?: number | undefined;
|
|
17823
18363
|
} | undefined;
|
|
17824
18364
|
google?: {
|
|
18365
|
+
headers?: Record<string, string> | undefined;
|
|
17825
18366
|
baseURL?: string | undefined;
|
|
17826
18367
|
streamRate?: number | undefined;
|
|
17827
18368
|
titlePrompt?: string | undefined;
|
|
@@ -17834,6 +18375,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17834
18375
|
maxToolResultChars?: number | undefined;
|
|
17835
18376
|
} | undefined;
|
|
17836
18377
|
anthropic?: {
|
|
18378
|
+
headers?: Record<string, string> | undefined;
|
|
17837
18379
|
baseURL?: string | undefined;
|
|
17838
18380
|
streamRate?: number | undefined;
|
|
17839
18381
|
titlePrompt?: string | undefined;
|
|
@@ -17922,6 +18464,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17922
18464
|
skills?: {
|
|
17923
18465
|
maxCatalogSkills?: number | undefined;
|
|
17924
18466
|
} | undefined;
|
|
18467
|
+
headers?: Record<string, string> | undefined;
|
|
17925
18468
|
streamRate?: number | undefined;
|
|
17926
18469
|
titlePrompt?: string | undefined;
|
|
17927
18470
|
titleModel?: string | undefined;
|
|
@@ -17960,6 +18503,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
17960
18503
|
apiKey?: string | undefined;
|
|
17961
18504
|
headers?: Record<string, string> | undefined;
|
|
17962
18505
|
baseURL?: string | undefined;
|
|
18506
|
+
provider?: EModelEndpoint.anthropic | undefined;
|
|
17963
18507
|
streamRate?: number | undefined;
|
|
17964
18508
|
titlePrompt?: string | undefined;
|
|
17965
18509
|
titleModel?: string | undefined;
|
|
@@ -18021,8 +18565,16 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
18021
18565
|
} | undefined;
|
|
18022
18566
|
directEndpoint?: boolean | undefined;
|
|
18023
18567
|
titleMessageRole?: "user" | "system" | "assistant" | undefined;
|
|
18568
|
+
tokenConfig?: Record<string, {
|
|
18569
|
+
context: number;
|
|
18570
|
+
prompt: number;
|
|
18571
|
+
completion: number;
|
|
18572
|
+
cacheRead?: number | undefined;
|
|
18573
|
+
cacheWrite?: number | undefined;
|
|
18574
|
+
}> | undefined;
|
|
18024
18575
|
}[] | undefined;
|
|
18025
18576
|
bedrock?: {
|
|
18577
|
+
headers?: Record<string, string> | undefined;
|
|
18026
18578
|
baseURL?: string | undefined;
|
|
18027
18579
|
streamRate?: number | undefined;
|
|
18028
18580
|
titlePrompt?: string | undefined;
|
|
@@ -18045,6 +18597,7 @@ export declare const getConfigDefaults: () => ExtractDefaults<{
|
|
|
18045
18597
|
} | undefined;
|
|
18046
18598
|
allowedAddresses?: string[] | undefined;
|
|
18047
18599
|
all?: {
|
|
18600
|
+
headers?: Record<string, string> | undefined;
|
|
18048
18601
|
streamRate?: number | undefined;
|
|
18049
18602
|
titlePrompt?: string | undefined;
|
|
18050
18603
|
titleModel?: string | undefined;
|
|
@@ -18548,7 +19101,7 @@ export declare enum Constants {
|
|
|
18548
19101
|
*/
|
|
18549
19102
|
VERSION = "__LIBRECHAT_VERSION__",
|
|
18550
19103
|
/** Key for the Custom Config's version (librechat.yaml). */
|
|
18551
|
-
CONFIG_VERSION = "1.3.
|
|
19104
|
+
CONFIG_VERSION = "1.3.13",
|
|
18552
19105
|
/** Standard value for the first message's `parentMessageId` value, to indicate no parent exists. */
|
|
18553
19106
|
NO_PARENT = "00000000-0000-0000-0000-000000000000",
|
|
18554
19107
|
/** Standard value to use whatever the submission prelim. `responseMessageId` is */
|