mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-05 01:58:50 +01:00
Merge branch 'main' into feat/multi-lang-Terms-of-service
This commit is contained in:
commit
4e82eab01c
81 changed files with 3178 additions and 1692 deletions
|
|
@ -500,11 +500,13 @@ export const intefaceSchema = z
|
|||
});
|
||||
|
||||
export type TInterfaceConfig = z.infer<typeof intefaceSchema>;
|
||||
export type TBalanceConfig = z.infer<typeof balanceSchema>;
|
||||
|
||||
export type TStartupConfig = {
|
||||
appTitle: string;
|
||||
socialLogins?: string[];
|
||||
interface?: TInterfaceConfig;
|
||||
balance?: TBalanceConfig;
|
||||
discordLoginEnabled: boolean;
|
||||
facebookLoginEnabled: boolean;
|
||||
githubLoginEnabled: boolean;
|
||||
|
|
@ -527,7 +529,6 @@ export type TStartupConfig = {
|
|||
socialLoginEnabled: boolean;
|
||||
passwordResetEnabled: boolean;
|
||||
emailEnabled: boolean;
|
||||
checkBalance: boolean;
|
||||
showBirthdayIcon: boolean;
|
||||
helpAndFaqURL: string;
|
||||
customFooter?: string;
|
||||
|
|
@ -551,6 +552,18 @@ export const ocrSchema = z.object({
|
|||
strategy: z.nativeEnum(OCRStrategy).default(OCRStrategy.MISTRAL_OCR),
|
||||
});
|
||||
|
||||
export const balanceSchema = z.object({
|
||||
enabled: z.boolean().optional().default(false),
|
||||
startBalance: z.number().optional().default(20000),
|
||||
autoRefillEnabled: z.boolean().optional().default(false),
|
||||
refillIntervalValue: z.number().optional().default(30),
|
||||
refillIntervalUnit: z
|
||||
.enum(['seconds', 'minutes', 'hours', 'days', 'weeks', 'months'])
|
||||
.optional()
|
||||
.default('days'),
|
||||
refillAmount: z.number().optional().default(10000),
|
||||
});
|
||||
|
||||
export const configSchema = z.object({
|
||||
version: z.string(),
|
||||
cache: z.boolean().default(true),
|
||||
|
|
@ -573,6 +586,7 @@ export const configSchema = z.object({
|
|||
allowedDomains: z.array(z.string()).optional(),
|
||||
})
|
||||
.default({ socialLogins: defaultSocialLogins }),
|
||||
balance: balanceSchema.optional(),
|
||||
speech: z
|
||||
.object({
|
||||
tts: ttsSchema.optional(),
|
||||
|
|
|
|||
|
|
@ -150,11 +150,12 @@ export type File = {
|
|||
|
||||
/* Agent types */
|
||||
|
||||
export type AgentParameterValue = number | null;
|
||||
export type AgentParameterValue = number | string | null;
|
||||
|
||||
export type AgentModelParameters = {
|
||||
model?: string;
|
||||
temperature: AgentParameterValue;
|
||||
maxContextTokens: AgentParameterValue;
|
||||
max_context_tokens: AgentParameterValue;
|
||||
max_output_tokens: AgentParameterValue;
|
||||
top_p: AgentParameterValue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue