benstuart0_on-this-day-i-ob.../src/settings.ts
2025-05-15 12:50:21 -05:00

30 lines
713 B
TypeScript

//
// Settings Interfaces & Defaults
//
export interface OnThisDayPluginSettings {
// OpenAI settings
openaiApiKey: string;
model: string;
// General settings
dailyNotesFolder: string;
dateFormat: string;
horizontalRules: string;
customPrompt: string;
placeholder: string;
throughTheYearsHeader: string;
shouldOutputLinkToNotes: boolean;
outputLengthSentences: number;
}
export const DEFAULT_SETTINGS: OnThisDayPluginSettings = {
openaiApiKey: "",
model: "gpt-4",
dailyNotesFolder: "010 Daily Notes",
dateFormat: "MMMM D, YYYY",
horizontalRules: "",
customPrompt: "",
placeholder: "<!OTDI>",
throughTheYearsHeader: "On This Day",
shouldOutputLinkToNotes: true,
outputLengthSentences: 3,
};