librechat-data-provider 0.7.73 → 0.7.74
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/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react-query/index.es.js +1 -1
- package/dist/react-query/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +16 -1
- package/src/mcp.ts +1 -0
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -501,11 +501,13 @@ export const intefaceSchema = z
|
|
|
501
501
|
});
|
|
502
502
|
|
|
503
503
|
export type TInterfaceConfig = z.infer<typeof intefaceSchema>;
|
|
504
|
+
export type TBalanceConfig = z.infer<typeof balanceSchema>;
|
|
504
505
|
|
|
505
506
|
export type TStartupConfig = {
|
|
506
507
|
appTitle: string;
|
|
507
508
|
socialLogins?: string[];
|
|
508
509
|
interface?: TInterfaceConfig;
|
|
510
|
+
balance?: TBalanceConfig;
|
|
509
511
|
discordLoginEnabled: boolean;
|
|
510
512
|
facebookLoginEnabled: boolean;
|
|
511
513
|
githubLoginEnabled: boolean;
|
|
@@ -514,6 +516,7 @@ export type TStartupConfig = {
|
|
|
514
516
|
appleLoginEnabled: boolean;
|
|
515
517
|
openidLabel: string;
|
|
516
518
|
openidImageUrl: string;
|
|
519
|
+
openidAutoRedirect: boolean;
|
|
517
520
|
/** LDAP Auth Configuration */
|
|
518
521
|
ldap?: {
|
|
519
522
|
/** LDAP enabled */
|
|
@@ -527,7 +530,6 @@ export type TStartupConfig = {
|
|
|
527
530
|
socialLoginEnabled: boolean;
|
|
528
531
|
passwordResetEnabled: boolean;
|
|
529
532
|
emailEnabled: boolean;
|
|
530
|
-
checkBalance: boolean;
|
|
531
533
|
showBirthdayIcon: boolean;
|
|
532
534
|
helpAndFaqURL: string;
|
|
533
535
|
customFooter?: string;
|
|
@@ -551,6 +553,18 @@ export const ocrSchema = z.object({
|
|
|
551
553
|
strategy: z.nativeEnum(OCRStrategy).default(OCRStrategy.MISTRAL_OCR),
|
|
552
554
|
});
|
|
553
555
|
|
|
556
|
+
export const balanceSchema = z.object({
|
|
557
|
+
enabled: z.boolean().optional().default(false),
|
|
558
|
+
startBalance: z.number().optional().default(20000),
|
|
559
|
+
autoRefillEnabled: z.boolean().optional().default(false),
|
|
560
|
+
refillIntervalValue: z.number().optional().default(30),
|
|
561
|
+
refillIntervalUnit: z
|
|
562
|
+
.enum(['seconds', 'minutes', 'hours', 'days', 'weeks', 'months'])
|
|
563
|
+
.optional()
|
|
564
|
+
.default('days'),
|
|
565
|
+
refillAmount: z.number().optional().default(10000),
|
|
566
|
+
});
|
|
567
|
+
|
|
554
568
|
export const configSchema = z.object({
|
|
555
569
|
version: z.string(),
|
|
556
570
|
cache: z.boolean().default(true),
|
|
@@ -573,6 +587,7 @@ export const configSchema = z.object({
|
|
|
573
587
|
allowedDomains: z.array(z.string()).optional(),
|
|
574
588
|
})
|
|
575
589
|
.default({ socialLogins: defaultSocialLogins }),
|
|
590
|
+
balance: balanceSchema.optional(),
|
|
576
591
|
speech: z
|
|
577
592
|
.object({
|
|
578
593
|
tts: ttsSchema.optional(),
|
package/src/mcp.ts
CHANGED