Skip to content

Commit

Permalink
remove unused custom default
Browse files Browse the repository at this point in the history
  • Loading branch information
travolin committed Nov 9, 2024
1 parent 5b1b74b commit 9749df0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions crates/shared/src/config/embeddings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,11 @@ use crate::form::{FormType, SettingOpts};

use super::UserSettings;

#[derive(Clone, Debug, Serialize, Deserialize, Diff)]
#[derive(Clone, Debug, Serialize, Deserialize, Diff, Default)]
pub struct EmbeddingSettings {
pub enable_embeddings: bool,
}

impl Default for EmbeddingSettings {
fn default() -> Self {
EmbeddingSettings {
enable_embeddings: false,
}
}
}

#[allow(dead_code)]
pub fn embedding_setting_opts(settings: &UserSettings) -> Vec<(String, SettingOpts)> {
vec![(
Expand Down

0 comments on commit 9749df0

Please sign in to comment.