aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-client/src/settings.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/atuin-client/src/settings.rs')
-rw-r--r--crates/atuin-client/src/settings.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs
index 1c35e6eb..a15ce461 100644
--- a/crates/atuin-client/src/settings.rs
+++ b/crates/atuin-client/src/settings.rs
@@ -477,6 +477,20 @@ pub struct Tmux {
pub height: String,
}
+#[derive(Default, Clone, Debug, Deserialize, Serialize)]
+pub struct Ai {
+ /// The address of the Atuin AI endpoint. Used for AI features like command generation.
+ /// Only necessary for custom AI endpoints.
+ pub ai_endpoint: Option<String>,
+
+ /// The API token for the Atuin AI endpoint. Used for AI features like command generation.
+ /// Only necessary for custom AI endpoints.
+ pub ai_api_token: Option<String>,
+
+ /// Whether or not to send the current working directory to the AI endpoint.
+ pub send_cwd: bool,
+}
+
impl Default for Preview {
fn default() -> Self {
Self {
@@ -836,6 +850,9 @@ pub struct Settings {
#[serde(default)]
pub meta: meta::Settings,
+
+ #[serde(default)]
+ pub ai: Ai,
}
impl Settings {