mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-29 13:46:18 +01:00
Merge branch 'dev' into feat/openid-custom-data
This commit is contained in:
commit
8f460b9f75
12 changed files with 157 additions and 20 deletions
|
|
@ -505,10 +505,28 @@ export const intefaceSchema = z
|
|||
export type TInterfaceConfig = z.infer<typeof intefaceSchema>;
|
||||
export type TBalanceConfig = z.infer<typeof balanceSchema>;
|
||||
|
||||
export const turnstileOptionsSchema = z
|
||||
.object({
|
||||
language: z.string().default('auto'),
|
||||
size: z.enum(['normal', 'compact', 'flexible', 'invisible']).default('normal'),
|
||||
})
|
||||
.default({
|
||||
language: 'auto',
|
||||
size: 'normal',
|
||||
});
|
||||
|
||||
export const turnstileSchema = z.object({
|
||||
siteKey: z.string(),
|
||||
options: turnstileOptionsSchema.optional(),
|
||||
});
|
||||
|
||||
export type TTurnstileConfig = z.infer<typeof turnstileSchema>;
|
||||
|
||||
export type TStartupConfig = {
|
||||
appTitle: string;
|
||||
socialLogins?: string[];
|
||||
interface?: TInterfaceConfig;
|
||||
turnstile?: TTurnstileConfig;
|
||||
balance?: TBalanceConfig;
|
||||
discordLoginEnabled: boolean;
|
||||
facebookLoginEnabled: boolean;
|
||||
|
|
@ -578,6 +596,7 @@ export const configSchema = z.object({
|
|||
filteredTools: z.array(z.string()).optional(),
|
||||
mcpServers: MCPServersSchema.optional(),
|
||||
interface: intefaceSchema,
|
||||
turnstile: turnstileSchema.optional(),
|
||||
fileStrategy: fileSourceSchema.default(FileSources.local),
|
||||
actions: z
|
||||
.object({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue