chore: update config template (#15344)

This commit is contained in:
DarkSky
2026-07-26 16:29:16 +08:00
committed by GitHub
parent 0d889bc643
commit b975e6b562
12 changed files with 54 additions and 211 deletions
@@ -217,21 +217,21 @@ declare global {
defineModuleConfig('copilot', {
enabled: {
desc: 'Whether to enable the copilot plugin. <br> Document: <a href="https://docs.affine.pro/self-host-affine/administer/ai" target="_blank">https://docs.affine.pro/self-host-affine/administer/ai</a>',
desc: 'Enable AI features. Workspace owners configure provider keys in Workspace Settings → Integrations → AI BYOK.',
default: false,
},
'byok.enabled': {
desc: 'Whether to enable workspace BYOK.',
desc: 'Allow workspace owners and admins to configure AI provider keys through AI BYOK.',
default: true,
shape: z.boolean(),
},
'byok.allowedProviders': {
desc: 'The allowlist for workspace BYOK providers.',
desc: 'AI providers that workspace owners and admins may add through AI BYOK.',
default: ['openai', 'anthropic', 'gemini', 'fal'],
shape: z.array(z.enum(['openai', 'anthropic', 'gemini', 'fal'])),
},
'byok.allowCustomEndpoint': {
desc: 'Whether workspace BYOK custom endpoints are accepted.',
desc: 'Allow AI BYOK keys to use a custom provider endpoint.',
default: false,
shape: z.boolean(),
},