import type { GlobalConfig } from "payload"; export const AiSettings: GlobalConfig = { slug: "ai-settings", label: "AI Settings", access: { read: () => true, // Needed if the Next.js frontend or server actions need to fetch it }, admin: { group: "Configuration", }, fields: [ { name: "customSources", type: "array", label: "Custom Trusted Sources", admin: { description: "List of trusted B2B/Tech sources (e.g. 'Vercel Blog', 'Fireship', 'Theo - t3.gg') the AI should prioritize when researching facts or videos. This overrides the hardcoded defaults.", }, fields: [ { name: "sourceName", type: "text", required: true, label: "Channel or Publication Name", }, ], }, ], };