diff --git a/app/MindWork AI Studio/Settings/Data.cs b/app/MindWork AI Studio/Settings/Data.cs index 1cbeca3..ff89a31 100644 --- a/app/MindWork AI Studio/Settings/Data.cs +++ b/app/MindWork AI Studio/Settings/Data.cs @@ -15,4 +15,15 @@ public sealed class Data /// List of configured providers. /// public List Providers { get; init; } = new(); + + /// + /// Should we save energy? When true, we will update content streamed + /// from the server, i.e., AI, less frequently. + /// + public bool IsSavingEnergy { get; set; } + + /// + /// Shortcuts to send the input to the AI. + /// + public SendBehavior ShortcutSendBehavior { get; set; } = SendBehavior.MODIFER_ENTER_IS_SENDING; } \ No newline at end of file diff --git a/app/MindWork AI Studio/Settings/SendBehavior.cs b/app/MindWork AI Studio/Settings/SendBehavior.cs new file mode 100644 index 0000000..96a3fd5 --- /dev/null +++ b/app/MindWork AI Studio/Settings/SendBehavior.cs @@ -0,0 +1,28 @@ +namespace AIStudio.Settings; + +/// +/// Possible behaviors for sending the input to the AI. +/// +public enum SendBehavior +{ + /// + /// There is no shortcut to send the input to the AI. The user must click + /// the send button. The enter key adds a new line. + /// + NO_KEY_IS_SENDING, + + /// + /// The user can send the input to the AI by pressing any modifier key + /// together with the enter key. Alternatively, the user can click the send + /// button. The enter key alone adds a new line. + /// + MODIFER_ENTER_IS_SENDING, + + /// + /// The user can send the input to the AI by pressing the enter key. In order + /// to add a new line, the user must press the shift key together with the + /// enter key. Alternatively, the user can click the send button to send the + /// input to the AI. + /// + ENTER_IS_SENDING, +} \ No newline at end of file